bruno/packages/bruno-tests/collection/echo/echo plaintext.bru

28 lines
319 B
Plaintext
Raw Permalink Normal View History

2024-01-29 09:04:55 +01:00
meta {
name: echo plaintext
type: http
seq: 3
2024-01-29 09:04:55 +01:00
}
post {
url: {{host}}/api/echo/text
body: text
auth: none
}
body:text {
hello
}
assert {
res.status: eq 200
}
tests {
test("should return plain text", function() {
const data = res.getBody();
expect(res.getBody()).to.eql("hello");
});
}