2.2.0
What's Changed
- added
I parse {value} body as {value}
step allow providing custom response parser by @AlexGalichenko in #47
When I parse "$response" body as "$soap"
Then I expect "$response.payload['soap:envelope']" to equal "bar"
where soap
is function in memory
import { XMLParser } from 'fast-xml-parser';
const xml = new XMLParser();
class Data {
soap = async (response) => {
const text = await response.text();
return xml.parse(text);
}
}
Full Changelog: 2.1.0...2.2.0