diff --git a/tools-deno/tools/deno.json b/tools-deno/tools/deno.json index f641ecbc..3bf4eb2d 100644 --- a/tools-deno/tools/deno.json +++ b/tools-deno/tools/deno.json @@ -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" }, diff --git a/tools-deno/tools/deno.lock b/tools-deno/tools/deno.lock index a557dcdb..a742575f 100644 --- a/tools-deno/tools/deno.lock +++ b/tools-deno/tools/deno.lock @@ -2,15 +2,17 @@ "version": "4", "specifiers": { "jsr:@kitsonk/xhr@0.5": "0.5.0", - "jsr:@std/assert@*": "1.0.6", - "jsr:@std/assert@^1.0.6": "1.0.6", - "jsr:@std/async@^1.0.5": "1.0.6", + "jsr:@std/assert@1": "1.0.8", + "jsr:@std/assert@^1.0.8": "1.0.8", + "jsr:@std/async@^1.0.8": "1.0.8", "jsr:@std/data-structures@^1.0.4": "1.0.4", - "jsr:@std/fs@^1.0.4": "1.0.4", - "jsr:@std/internal@^1.0.4": "1.0.4", + "jsr:@std/expect@^1.0.8": "1.0.8", + "jsr:@std/fs@^1.0.5": "1.0.5", + "jsr:@std/internal@^1.0.5": "1.0.5", "jsr:@std/media-types@1": "1.0.3", - "jsr:@std/path@^1.0.6": "1.0.6", - "jsr:@std/testing@^1.0.3": "1.0.3", + "jsr:@std/path@^1.0.7": "1.0.8", + "jsr:@std/path@^1.0.8": "1.0.8", + "jsr:@std/testing@1": "1.0.5", "npm:@ngneat/falso@*": "7.2.0", "npm:@ngneat/falso@^7.2.0": "7.2.0", "npm:@types/express@*": "4.17.15", @@ -30,42 +32,49 @@ "jsr:@std/media-types" ] }, - "@std/assert@1.0.6": { - "integrity": "1904c05806a25d94fe791d6d883b685c9e2dcd60e4f9fc30f4fc5cf010c72207", + "@std/assert@1.0.8": { + "integrity": "ebe0bd7eb488ee39686f77003992f389a06c3da1bbd8022184804852b2fa641b", "dependencies": [ "jsr:@std/internal" ] }, - "@std/async@1.0.6": { - "integrity": "6d262156dd35c4a72ee1a2f8679be40264f370cfb92e2e13d4eca2ae05e16f34" + "@std/async@1.0.8": { + "integrity": "c057c5211a0f1d12e7dcd111ab430091301b8d64b4250052a79d277383bc3ba7" }, "@std/data-structures@1.0.4": { "integrity": "fa0e20c11eb9ba673417450915c750a0001405a784e2a4e0c3725031681684a0" }, - "@std/fs@1.0.4": { - "integrity": "2907d32d8d1d9e540588fd5fe0ec21ee638134bd51df327ad4e443aaef07123c", + "@std/expect@1.0.8": { + "integrity": "27e40d8f3aefb372fc6a703fb0b69e34560e72a2f78705178babdffa00119a5f", "dependencies": [ - "jsr:@std/path" + "jsr:@std/assert@^1.0.8", + "jsr:@std/internal" + ] + }, + "@std/fs@1.0.5": { + "integrity": "41806ad6823d0b5f275f9849a2640d87e4ef67c51ee1b8fb02426f55e02fd44e", + "dependencies": [ + "jsr:@std/path@^1.0.7" ] }, - "@std/internal@1.0.4": { - "integrity": "62e8e4911527e5e4f307741a795c0b0a9e6958d0b3790716ae71ce085f755422" + "@std/internal@1.0.5": { + "integrity": "54a546004f769c1ac9e025abd15a76b6671ddc9687e2313b67376125650dc7ba" }, "@std/media-types@1.0.3": { "integrity": "b12d30a7852f7578f4d210622df713bbfd1cbdd9b4ec2eaf5c1845ab70bab159" }, - "@std/path@1.0.6": { - "integrity": "ab2c55f902b380cf28e0eec501b4906e4c1960d13f00e11cfbcd21de15f18fed" + "@std/path@1.0.8": { + "integrity": "548fa456bb6a04d3c1a1e7477986b6cffbce95102d0bb447c67c4ee70e0364be" }, - "@std/testing@1.0.3": { - "integrity": "f98c2bee53860a5916727d7e7d3abe920dd6f9edace022e2d059f00d05c2cf42", + "@std/testing@1.0.5": { + "integrity": "6e693cbec94c81a1ad3df668685c7ba8e20742bb10305bc7137faa5cf16d2ec4", "dependencies": [ - "jsr:@std/assert@^1.0.6", + "jsr:@std/assert@^1.0.8", "jsr:@std/async", "jsr:@std/data-structures", "jsr:@std/fs", "jsr:@std/internal", - "jsr:@std/path" + "jsr:@std/path@^1.0.8" ] } }, @@ -814,8 +823,9 @@ "workspace": { "dependencies": [ "jsr:@kitsonk/xhr@0.5", - "jsr:@std/assert@^1.0.6", - "jsr:@std/testing@^1.0.3", + "jsr:@std/assert@1", + "jsr:@std/expect@^1.0.8", + "jsr:@std/testing@1", "npm:@ngneat/falso@^7.2.0", "npm:zod@^3.23.8" ] diff --git a/tools-deno/tools/src/http-client/json/__tests__/json_http_client_impl.test.ts b/tools-deno/tools/src/http-client/json/__tests__/json_http_client_impl.test.ts index e5727a9b..78e3833f 100644 --- a/tools-deno/tools/src/http-client/json/__tests__/json_http_client_impl.test.ts +++ b/tools-deno/tools/src/http-client/json/__tests__/json_http_client_impl.test.ts @@ -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, ); }); @@ -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, ); }); @@ -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, ); }); @@ -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, ); });