bruno/packages/bruno-tests/collection/echo/echo plaintext.bru
2024-08-12 12:27:32 +05:30

28 lines
319 B
Plaintext

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