mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-25 16:18:56 +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");
|
|
});
|
|
|
|
}
|