fix: fixed failing test

This commit is contained in:
Anoop M D 2024-01-29 19:02:39 +05:30
parent 65b76b7281
commit 54d4a74355

View File

@ -36,7 +36,8 @@ assert {
tests {
test("should return json", function() {
const url = req.getUrl();
expect(url).to.equal("http://localhost:80/api/echo/json?foo={{undefinedVar}}");
const query = url.split("?")[1];
expect(query).to.equal("foo={{undefinedVar}}");
const data = res.getBody();
expect(res.getBody()).to.eql({