mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-16 04:11:29 +00:00
24 lines
302 B
Plaintext
24 lines
302 B
Plaintext
meta {
|
|
name: getHost
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
get {
|
|
url: {{host}}/ping
|
|
body: none
|
|
auth: none
|
|
}
|
|
|
|
assert {
|
|
res.status: eq 200
|
|
res.body: eq pong
|
|
}
|
|
|
|
tests {
|
|
test("req.getHost()", function() {
|
|
const host = req.getHost();
|
|
expect(host).to.equal("testbench-sanity.usebruno.com");
|
|
});
|
|
}
|