bruno/packages/bruno-tests/collection/echo/echo xml parsed.bru
lohit cc8f3de8be
feat: upgrade libraries for dependabot alerts (#3300)
* feat: upgrade libraries and code cleanup
2024-10-17 11:04:47 +05:30

34 lines
414 B
Plaintext

meta {
name: echo xml parsed
type: http
seq: 4
}
post {
url: {{host}}/api/echo/xml-parsed
body: xml
auth: none
}
body:xml {
<hello>
<world>bruno</world>
</hello>
}
assert {
res.status: eq 200
}
tests {
test("should return parsed xml", function() {
const data = res.getBody();
expect(res.getBody()).to.eql({
"hello": {
"world": ["bruno"]
}
});
});
}