mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-13 18:21:28 +01:00
24 lines
310 B
Plaintext
24 lines
310 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("req.getUrl()", function() {
|
||
|
const url = req.getUrl();
|
||
|
expect(url).to.equal("https://testbench-sanity.usebruno.com/ping");
|
||
|
});
|
||
|
}
|