summaryrefslogtreecommitdiff
path: root/tests/unit/dir_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/dir_test.ts')
-rw-r--r--tests/unit/dir_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/dir_test.ts b/tests/unit/dir_test.ts
index 4aaadfb12..1e702f549 100644
--- a/tests/unit/dir_test.ts
+++ b/tests/unit/dir_test.ts
@@ -43,7 +43,7 @@ Deno.test({ permissions: { read: false } }, function dirCwdPermError() {
() => {
Deno.cwd();
},
- Deno.errors.PermissionDenied,
+ Deno.errors.NotCapable,
"Requires read access to <CWD>, run again with the --allow-read flag",
);
});