summaryrefslogtreecommitdiff
path: root/tests/unit/real_path_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/real_path_test.ts')
-rw-r--r--tests/unit/real_path_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/real_path_test.ts b/tests/unit/real_path_test.ts
index b3656a927..783284630 100644
--- a/tests/unit/real_path_test.ts
+++ b/tests/unit/real_path_test.ts
@@ -50,7 +50,7 @@ Deno.test(
Deno.test({ permissions: { read: false } }, function realPathSyncPerm() {
assertThrows(() => {
Deno.realPathSync("some_file");
- }, Deno.errors.PermissionDenied);
+ }, Deno.errors.NotCapable);
});
Deno.test({ permissions: { read: true } }, function realPathSyncNotFound() {
@@ -104,7 +104,7 @@ Deno.test(
Deno.test({ permissions: { read: false } }, async function realPathPerm() {
await assertRejects(async () => {
await Deno.realPath("some_file");
- }, Deno.errors.PermissionDenied);
+ }, Deno.errors.NotCapable);
});
Deno.test({ permissions: { read: true } }, async function realPathNotFound() {