Skip to content

Commit

Permalink
fix: failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vighnesh153 committed Nov 16, 2024
1 parent a58f596 commit dd900a3
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 32 deletions.
1 change: 1 addition & 0 deletions tools-deno/tools/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@kitsonk/xhr": "jsr:@kitsonk/xhr@^0.5.0",
"@ngneat/falso": "npm:@ngneat/falso@^7.2.0",
"@std/assert": "jsr:@std/assert@1",
"@std/expect": "jsr:@std/expect@^1.0.8",
"@std/testing": "jsr:@std/testing@1",
"zod": "npm:zod@^3.23.8"
},
Expand Down
58 changes: 34 additions & 24 deletions tools-deno/tools/deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ test("jsonHttpClient: for GET Request, abort the request if it takes longer than
"Request timed out after 500 milliseconds.",
);
assertEquals(
abortResponse.reason,
new Error("Request timed out after 500 milliseconds."),
abortResponse.reason.message,
new Error("Request timed out after 500 milliseconds.").message,
);
});

Expand Down Expand Up @@ -211,8 +211,8 @@ test("jsonHttpClient: for GET Request, should abort the request", async () => {
`Aborting because user changed page.`,
);
assertEquals(
abortResponse.reason,
new Error(`Aborting because user changed page.`),
abortResponse.reason.message,
new Error(`Aborting because user changed page.`).message,
);
});

Expand Down Expand Up @@ -377,8 +377,8 @@ test("jsonHttpClient: for POST Request, abort the request if it takes longer tha
"Request timed out after 500 milliseconds.",
);
assertEquals(
abortResponse.reason,
new Error("Request timed out after 500 milliseconds."),
abortResponse.reason.message,
new Error("Request timed out after 500 milliseconds.").message,
);
});

Expand Down Expand Up @@ -513,8 +513,8 @@ test("jsonHttpClient: for POST Request, should abort the request", async () => {
"Aborting because user changed page.",
);
assertEquals(
abortResponse.reason,
new Error("Aborting because user changed page."),
abortResponse.reason.message,
new Error("Aborting because user changed page.").message,
);
});

Expand Down

0 comments on commit dd900a3

Please sign in to comment.