diff options
Diffstat (limited to 'cli/tests/unit/remove_test.ts')
-rw-r--r-- | cli/tests/unit/remove_test.ts | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/cli/tests/unit/remove_test.ts b/cli/tests/unit/remove_test.ts index 36b5cc051..192ac676e 100644 --- a/cli/tests/unit/remove_test.ts +++ b/cli/tests/unit/remove_test.ts @@ -4,7 +4,7 @@ import { assert, assertRejects, assertThrows, unitTest } from "./test_util.ts"; const REMOVE_METHODS = ["remove", "removeSync"] as const; unitTest( - { perms: { write: true, read: true } }, + { permissions: { write: true, read: true } }, async function removeDirSuccess() { for (const method of REMOVE_METHODS) { // REMOVE EMPTY DIRECTORY @@ -22,7 +22,7 @@ unitTest( ); unitTest( - { perms: { write: true, read: true } }, + { permissions: { write: true, read: true } }, async function removeFileSuccess() { for (const method of REMOVE_METHODS) { // REMOVE FILE @@ -42,7 +42,7 @@ unitTest( ); unitTest( - { perms: { write: true, read: true } }, + { permissions: { write: true, read: true } }, async function removeFileByUrl() { for (const method of REMOVE_METHODS) { // REMOVE FILE @@ -67,7 +67,7 @@ unitTest( ); unitTest( - { perms: { write: true, read: true } }, + { permissions: { write: true, read: true } }, async function removeFail() { for (const method of REMOVE_METHODS) { // NON-EMPTY DIRECTORY @@ -94,7 +94,7 @@ unitTest( ); unitTest( - { perms: { write: true, read: true } }, + { permissions: { write: true, read: true } }, async function removeDanglingSymlinkSuccess() { for (const method of REMOVE_METHODS) { const danglingSymlinkPath = Deno.makeTempDirSync() + "/dangling_symlink"; @@ -116,7 +116,7 @@ unitTest( ); unitTest( - { perms: { write: true, read: true } }, + { permissions: { write: true, read: true } }, async function removeValidSymlinkSuccess() { for (const method of REMOVE_METHODS) { const encoder = new TextEncoder(); @@ -141,7 +141,7 @@ unitTest( }, ); -unitTest({ perms: { write: false } }, async function removePerm() { +unitTest({ permissions: { write: false } }, async function removePerm() { for (const method of REMOVE_METHODS) { await assertRejects(async () => { await Deno[method]("/baddir"); @@ -150,7 +150,7 @@ unitTest({ perms: { write: false } }, async function removePerm() { }); unitTest( - { perms: { write: true, read: true } }, + { permissions: { write: true, read: true } }, async function removeAllDirSuccess() { for (const method of REMOVE_METHODS) { // REMOVE EMPTY DIRECTORY @@ -187,7 +187,7 @@ unitTest( ); unitTest( - { perms: { write: true, read: true } }, + { permissions: { write: true, read: true } }, async function removeAllFileSuccess() { for (const method of REMOVE_METHODS) { // REMOVE FILE @@ -207,7 +207,7 @@ unitTest( }, ); -unitTest({ perms: { write: true } }, async function removeAllFail() { +unitTest({ permissions: { write: true } }, async function removeAllFail() { for (const method of REMOVE_METHODS) { // NON-EXISTENT DIRECTORY/FILE await assertRejects(async () => { @@ -217,7 +217,7 @@ unitTest({ perms: { write: true } }, async function removeAllFail() { } }); -unitTest({ perms: { write: false } }, async function removeAllPerm() { +unitTest({ permissions: { write: false } }, async function removeAllPerm() { for (const method of REMOVE_METHODS) { await assertRejects(async () => { await Deno[method]("/baddir", { recursive: true }); @@ -228,7 +228,7 @@ unitTest({ perms: { write: false } }, async function removeAllPerm() { unitTest( { ignore: Deno.build.os === "windows", - perms: { write: true, read: true }, + permissions: { write: true, read: true }, }, async function removeUnixSocketSuccess() { for (const method of REMOVE_METHODS) { @@ -248,7 +248,7 @@ unitTest( if (Deno.build.os === "windows") { unitTest( - { perms: { run: true, write: true, read: true } }, + { permissions: { run: true, write: true, read: true } }, async function removeFileSymlink() { const symlink = Deno.run({ cmd: ["cmd", "/c", "mklink", "file_link", "bar"], @@ -265,7 +265,7 @@ if (Deno.build.os === "windows") { ); unitTest( - { perms: { run: true, write: true, read: true } }, + { permissions: { run: true, write: true, read: true } }, async function removeDirSymlink() { const symlink = Deno.run({ cmd: ["cmd", "/c", "mklink", "/d", "dir_link", "bar"], |