summaryrefslogtreecommitdiff
path: root/cli/tests/unit/read_link_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/read_link_test.ts')
-rw-r--r--cli/tests/unit/read_link_test.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/cli/tests/unit/read_link_test.ts b/cli/tests/unit/read_link_test.ts
index 3e3fbe4f1..f468e6f52 100644
--- a/cli/tests/unit/read_link_test.ts
+++ b/cli/tests/unit/read_link_test.ts
@@ -8,7 +8,7 @@ import {
} from "./test_util.ts";
unitTest(
- { perms: { write: true, read: true } },
+ { permissions: { write: true, read: true } },
function readLinkSyncSuccess() {
const testDir = Deno.makeTempDirSync();
const target = testDir +
@@ -23,7 +23,7 @@ unitTest(
);
unitTest(
- { perms: { write: true, read: true } },
+ { permissions: { write: true, read: true } },
function readLinkSyncUrlSuccess() {
const testDir = Deno.makeTempDirSync();
const target = testDir +
@@ -37,20 +37,20 @@ unitTest(
},
);
-unitTest({ perms: { read: false } }, function readLinkSyncPerm() {
+unitTest({ permissions: { read: false } }, function readLinkSyncPerm() {
assertThrows(() => {
Deno.readLinkSync("/symlink");
}, Deno.errors.PermissionDenied);
});
-unitTest({ perms: { read: true } }, function readLinkSyncNotFound() {
+unitTest({ permissions: { read: true } }, function readLinkSyncNotFound() {
assertThrows(() => {
Deno.readLinkSync("bad_filename");
}, Deno.errors.NotFound);
});
unitTest(
- { perms: { write: true, read: true } },
+ { permissions: { write: true, read: true } },
async function readLinkSuccess() {
const testDir = Deno.makeTempDirSync();
const target = testDir +
@@ -65,7 +65,7 @@ unitTest(
);
unitTest(
- { perms: { write: true, read: true } },
+ { permissions: { write: true, read: true } },
async function readLinkUrlSuccess() {
const testDir = Deno.makeTempDirSync();
const target = testDir +
@@ -79,7 +79,7 @@ unitTest(
},
);
-unitTest({ perms: { read: false } }, async function readLinkPerm() {
+unitTest({ permissions: { read: false } }, async function readLinkPerm() {
await assertRejects(async () => {
await Deno.readLink("/symlink");
}, Deno.errors.PermissionDenied);