diff options
author | Benjamin Gruenbaum <benjamingr@gmail.com> | 2020-11-14 14:10:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-14 13:10:23 +0100 |
commit | 3d65e57d7c48f5dd1307f83771fe5574d914cea3 (patch) | |
tree | 80396bd252f01c9794a226785582c0408c78549f /cli/tests/unit/permissions_test.ts | |
parent | 3a0ebff641c5b5d8d3c87b67c3e6f5b4f004478f (diff) |
fix: fix various global objects constructor length (#8373)
This commit changes various Web APIs constructors to
match their signature in the browser.
Diffstat (limited to 'cli/tests/unit/permissions_test.ts')
-rw-r--r-- | cli/tests/unit/permissions_test.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cli/tests/unit/permissions_test.ts b/cli/tests/unit/permissions_test.ts index eada8fe9a..dee8aa195 100644 --- a/cli/tests/unit/permissions_test.ts +++ b/cli/tests/unit/permissions_test.ts @@ -1,5 +1,10 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { assertThrows, assertThrowsAsync, unitTest } from "./test_util.ts"; +import { + assertEquals, + assertThrows, + assertThrowsAsync, + unitTest, +} from "./test_util.ts"; unitTest(async function permissionInvalidName(): Promise<void> { await assertThrowsAsync(async () => { @@ -24,4 +29,5 @@ unitTest(function permissionStatusIllegalConstructor() { TypeError, "Illegal constructor.", ); + assertEquals(Deno.PermissionStatus.length, 0); }); |