Shadman Equebal
08/04/2023, 6:29 PM//contract body
const BODY = new XmlBuilder("1.0", "UTF-8", "f:Student").build((el) => {
el.setAttributes({
"xmlns:f":"<https://www.w3schools.com/furniture>"
})
el.appendElement("f:Name", {}, (version) => {
version.appendText(MatchersV3.string("John Doe"))
})
})
response returned by the mock api
<?xml version='1.0'?>
<f:Student xmlns:f="<https://www.w3schools.com/furniture>">
<f:Name>John Doe 2</f:Name>
</f:Student>
I am using node 18.0.0 and pactjs version 12.1.0Matt (pactflow.io / pact-js / pact-go)