diff options
| author | Casper Beyer <caspervonb@pm.me> | 2021-09-23 07:50:50 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-23 01:50:50 +0200 |
| commit | 830586d242216e64fcd16e65cc83db9d54d63dc0 (patch) | |
| tree | a84f0090faaa14879693016e9d9b13fcfbb92dcd /cli/tests/unit/link_test.ts | |
| parent | 87e78802b0ae65cc57d66eaa8e5265f74cf69092 (diff) | |
test(cli): align unit test permissions with runtime test permissions (#12189)
Diffstat (limited to 'cli/tests/unit/link_test.ts')
| -rw-r--r-- | cli/tests/unit/link_test.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/tests/unit/link_test.ts b/cli/tests/unit/link_test.ts index 5d3553ac3..1688b53f1 100644 --- a/cli/tests/unit/link_test.ts +++ b/cli/tests/unit/link_test.ts @@ -2,7 +2,7 @@ import { assert, assertEquals, assertThrows, unitTest } from "./test_util.ts"; unitTest( - { perms: { read: true, write: true } }, + { permissions: { read: true, write: true } }, function linkSyncSuccess() { const testDir = Deno.makeTempDirSync(); const oldData = "Hardlink"; @@ -41,7 +41,7 @@ unitTest( ); unitTest( - { perms: { read: true, write: true } }, + { permissions: { read: true, write: true } }, function linkSyncExists() { const testDir = Deno.makeTempDirSync(); const oldName = testDir + "/oldname"; @@ -57,7 +57,7 @@ unitTest( ); unitTest( - { perms: { read: true, write: true } }, + { permissions: { read: true, write: true } }, function linkSyncNotFound() { const testDir = Deno.makeTempDirSync(); const oldName = testDir + "/oldname"; @@ -70,7 +70,7 @@ unitTest( ); unitTest( - { perms: { read: false, write: true } }, + { permissions: { read: false, write: true } }, function linkSyncReadPerm() { assertThrows(() => { Deno.linkSync("oldbaddir", "newbaddir"); @@ -79,7 +79,7 @@ unitTest( ); unitTest( - { perms: { read: true, write: false } }, + { permissions: { read: true, write: false } }, function linkSyncWritePerm() { assertThrows(() => { Deno.linkSync("oldbaddir", "newbaddir"); @@ -88,7 +88,7 @@ unitTest( ); unitTest( - { perms: { read: true, write: true } }, + { permissions: { read: true, write: true } }, async function linkSuccess() { const testDir = Deno.makeTempDirSync(); const oldData = "Hardlink"; |
