mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-03 13:24:46 +01:00
753a576c3c
Safe Mode Sandbox using QuickJS Co-authored-by: Anoop M D <anoop.md1421@gmail.com> Co-authored-by: lohit <lohit.jiddimani@gmail.com>
28 lines
319 B
Plaintext
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");
|
|
});
|
|
|
|
}
|