diff options
Diffstat (limited to 'tests/unit/link_test.ts')
-rw-r--r-- | tests/unit/link_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/link_test.ts b/tests/unit/link_test.ts index 6048b8add..dfa72479c 100644 --- a/tests/unit/link_test.ts +++ b/tests/unit/link_test.ts @@ -87,7 +87,7 @@ Deno.test( function linkSyncReadPerm() { assertThrows(() => { Deno.linkSync("oldbaddir", "newbaddir"); - }, Deno.errors.PermissionDenied); + }, Deno.errors.NotCapable); }, ); @@ -96,7 +96,7 @@ Deno.test( function linkSyncWritePerm() { assertThrows(() => { Deno.linkSync("oldbaddir", "newbaddir"); - }, Deno.errors.PermissionDenied); + }, Deno.errors.NotCapable); }, ); @@ -181,7 +181,7 @@ Deno.test( async function linkReadPerm() { await assertRejects(async () => { await Deno.link("oldbaddir", "newbaddir"); - }, Deno.errors.PermissionDenied); + }, Deno.errors.NotCapable); }, ); @@ -190,6 +190,6 @@ Deno.test( async function linkWritePerm() { await assertRejects(async () => { await Deno.link("oldbaddir", "newbaddir"); - }, Deno.errors.PermissionDenied); + }, Deno.errors.NotCapable); }, ); |