mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-16 04:11:29 +00:00
34 lines
355 B
Plaintext
34 lines
355 B
Plaintext
meta {
|
|
name: null
|
|
type: http
|
|
seq: 6
|
|
}
|
|
|
|
post {
|
|
url: {{host}}/api/echo/json
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"hello": "bruno"
|
|
}
|
|
}
|
|
|
|
assert {
|
|
res.status: eq 200
|
|
}
|
|
|
|
script:post-response {
|
|
res.setBody(null)
|
|
}
|
|
|
|
tests {
|
|
test("res.setBody(null)", function() {
|
|
const body = res.getBody();
|
|
expect(body).to.be.null;
|
|
});
|
|
|
|
}
|