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

28 lines
319 B
Plaintext

meta {
name: echo plaintext
type: http
seq: 2
}
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");
});
}