updated testbench collection (#2542)

This commit is contained in:
lohit 2024-07-01 15:40:31 +05:30 committed by GitHub
parent c895d7f357
commit 61e0ac03fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"));
}); });
} }