bruno/packages/bruno-tests/collection/echo/echo xml parsed.bru

36 lines
434 B
Plaintext
Raw Normal View History

2024-01-29 09:04:55 +01:00
meta {
name: echo xml parsed
type: http
seq: 4
2024-01-29 09:04:55 +01:00
}
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"
]
}
});
});
}