mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-25 17:33:28 +01:00
28 lines
319 B
Plaintext
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");
|
|
});
|
|
|
|
}
|