Skip to content

2.2.0

Compare
Choose a tag to compare
@AlexGalichenko AlexGalichenko released this 29 May 19:54
· 2 commits to main since this release
a962439

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