diff options
Diffstat (limited to 'tests/unit/read_dir_test.ts')
-rw-r--r-- | tests/unit/read_dir_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/read_dir_test.ts b/tests/unit/read_dir_test.ts index cba9647e5..b00495eb4 100644 --- a/tests/unit/read_dir_test.ts +++ b/tests/unit/read_dir_test.ts @@ -35,7 +35,7 @@ Deno.test({ permissions: { read: true } }, function readDirSyncWithUrl() { Deno.test({ permissions: { read: false } }, function readDirSyncPerm() { assertThrows(() => { Deno.readDirSync("tests/"); - }, Deno.errors.PermissionDenied); + }, Deno.errors.NotCapable); }); Deno.test({ permissions: { read: true } }, function readDirSyncNotDir() { @@ -79,7 +79,7 @@ Deno.test({ permissions: { read: true } }, async function readDirWithUrl() { Deno.test({ permissions: { read: false } }, async function readDirPerm() { await assertRejects(async () => { await Deno.readDir("tests/")[Symbol.asyncIterator]().next(); - }, Deno.errors.PermissionDenied); + }, Deno.errors.NotCapable); }); Deno.test( |