mirror of
https://github.com/usebruno/bruno.git
synced 2025-06-26 15:01:40 +02:00
updated testbench collection (#2542)
This commit is contained in:
parent
c895d7f357
commit
61e0ac03fa
@ -27,13 +27,13 @@ vars:pre-request {
|
|||||||
assert {
|
assert {
|
||||||
res.status: eq 200
|
res.status: eq 200
|
||||||
res.responseTime: lte 2000
|
res.responseTime: lte 2000
|
||||||
~res.body: eq {{pong}}
|
res.body: eq {{pong}}
|
||||||
}
|
}
|
||||||
|
|
||||||
tests {
|
tests {
|
||||||
test("should ping pong", function() {
|
test("should ping pong", function() {
|
||||||
const data = res.getBody();
|
const data = res.getBody();
|
||||||
expect(data).to.equal(bru.getVar("pong"));
|
expect(data).to.equal(bru.getRequestVar("pong"));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user