mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-22 12:15:38 +00:00
28 lines
426 B
Plaintext
28 lines
426 B
Plaintext
meta {
|
|
name: getUrl
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
get {
|
|
url: {{host}}/ping
|
|
body: none
|
|
auth: none
|
|
}
|
|
|
|
assert {
|
|
res.status: eq 200
|
|
res.body: eq pong
|
|
}
|
|
|
|
tests {
|
|
test("res.url", function() {
|
|
expect(res.url).to.equal("https://testbench-sanity.usebruno.com/ping");
|
|
});
|
|
|
|
test("res.getUrl()", function() {
|
|
const url = res.getUrl();
|
|
expect(url).to.equal("https://testbench-sanity.usebruno.com/ping");
|
|
});
|
|
}
|