mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-28 19:03:15 +01:00
cc8f3de8be
* feat: upgrade libraries and code cleanup
34 lines
414 B
Plaintext
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"]
|
|
}
|
|
});
|
|
});
|
|
|
|
}
|