From 38c5a9b65a295ac0f33813b01f0a8d15485ccad2 Mon Sep 17 00:00:00 2001 From: Simon Holloway Date: Wed, 10 Jan 2024 12:53:21 +0000 Subject: [PATCH] refactor(url): prepare for `noUncheckedIndexedAccess` --- url/dirname_test.ts | 2 +- url/extname_test.ts | 2 +- url/normalize_test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/url/dirname_test.ts b/url/dirname_test.ts index b9052cfd5aaa..4c9a25e93658 100755 --- a/url/dirname_test.ts +++ b/url/dirname_test.ts @@ -24,7 +24,7 @@ const TESTSUITE = [ new URL("https://deno.land///"), new URL("https://deno.land"), ], -]; +] as const; Deno.test("dirname()", function () { for (const [test_url, expected] of TESTSUITE) { diff --git a/url/extname_test.ts b/url/extname_test.ts index dafd40b0d354..ec2e63cb37fa 100755 --- a/url/extname_test.ts +++ b/url/extname_test.ts @@ -10,7 +10,7 @@ const TESTSUITE = [ [new URL("https://deno.land/std/assert/mod.ts#header"), ".ts"], [new URL("https://deno.land/std/assert/mod."), "."], [new URL("https://deno.land/std/assert/mod"), ""], -]; +] as const; Deno.test("extname()", function () { for (const [test_url, expected] of TESTSUITE) { diff --git a/url/normalize_test.ts b/url/normalize_test.ts index 2492f425df62..93d6a5f9656c 100755 --- a/url/normalize_test.ts +++ b/url/normalize_test.ts @@ -28,7 +28,7 @@ const TESTSUITE = [ "https:/deno.land//..", new URL("https://deno.land"), ], -]; +] as const; Deno.test("normalize()", function () { for (const [test_url, expected] of TESTSUITE) {