bruno/packages/bruno-tests/collection/scripting/api/req/getMethod.bru

24 lines
288 B
Plaintext
Raw Normal View History

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