diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-01-20 16:50:16 +0100 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2020-01-20 10:50:16 -0500 |
commit | c90036ab88bb1ae6b9c87d5e368f56d8c8afab69 (patch) | |
tree | ebc7b762151489440135c029a1217c80bb810900 /cli/js/permissions_test.ts | |
parent | e83658138bff3605bd37c2b4ae4703081d884729 (diff) |
refactor: reduce number of ErrorKind variants (#3662)
Diffstat (limited to 'cli/js/permissions_test.ts')
-rw-r--r-- | cli/js/permissions_test.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/js/permissions_test.ts b/cli/js/permissions_test.ts index 22e8494e9..d63dddb15 100644 --- a/cli/js/permissions_test.ts +++ b/cli/js/permissions_test.ts @@ -35,15 +35,14 @@ test(async function permissionInvalidName(): Promise<void> { // eslint-disable-next-line @typescript-eslint/no-explicit-any await Deno.permissions.query({ name: "foo" as any }); } catch (e) { - assert(e.name === "TypeError"); + assert(e.name === "Other"); } }); test(async function permissionNetInvalidUrl(): Promise<void> { try { - // Invalid url causes TypeError. await Deno.permissions.query({ name: "net", url: ":" }); } catch (e) { - assert(e.name === "TypeError"); + assert(e.name === "UrlParse"); } }); |