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