Skip to content

Commit

Permalink
fix: fixed failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
helloanoop committed Jan 29, 2024
1 parent 65b76b7 commit 54d4a74
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 54d4a74

Please sign in to comment.