summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2024-09-24 07:04:52 -0700
committerGitHub <noreply@github.com>2024-09-24 07:04:52 -0700
commit5a1943cd9560466a5922bd3cd79cca5c9f378561 (patch)
tree8d73d135dc638a2d8d169bc93df8ddbccfedf945 /tests/unit
parent3242550f5f0b33769a4e0a24a7dc96773647ca75 (diff)
fix: better error for Deno.UnsafeWindowSurface, correct HttpClient name, cleanup unused code (#25833)
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/fetch_test.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit/fetch_test.ts b/tests/unit/fetch_test.ts
index 48cde90ab..3ae96746a 100644
--- a/tests/unit/fetch_test.ts
+++ b/tests/unit/fetch_test.ts
@@ -1156,6 +1156,7 @@ Deno.test(
> {
const caCert = Deno.readTextFileSync("tests/testdata/tls/RootCA.pem");
const client = Deno.createHttpClient({ caCerts: [caCert] });
+ assert(client instanceof Deno.HttpClient);
const response = await fetch("https://localhost:5545/assets/fixture.json", {
client,
});