Files
bruno/packages/bruno-tests/collection/scripting/api/res/getStatus.bru
2024-08-12 12:28:41 +05:30

24 lines
283 B
Plaintext

meta {
name: getStatus
type: http
seq: 1
}
get {
url: {{host}}/ping
body: none
auth: none
}
assert {
res.status: eq 200
res.body: eq pong
}
tests {
test("res.getStatus()", function() {
const status = res.getStatus()
expect(status).to.equal(200);
});
}