diff options
Diffstat (limited to 'cli/tests/unit/rename_test.ts')
-rw-r--r-- | cli/tests/unit/rename_test.ts | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/cli/tests/unit/rename_test.ts b/cli/tests/unit/rename_test.ts index c5df8e4a4..387c0a51d 100644 --- a/cli/tests/unit/rename_test.ts +++ b/cli/tests/unit/rename_test.ts @@ -34,7 +34,7 @@ function assertDirectory(path: string, mode?: number) { } unitTest( - { perms: { read: true, write: true } }, + { permissions: { read: true, write: true } }, function renameSyncSuccess() { const testDir = Deno.makeTempDirSync(); const oldpath = testDir + "/oldpath"; @@ -47,7 +47,7 @@ unitTest( ); unitTest( - { perms: { read: true, write: true } }, + { permissions: { read: true, write: true } }, function renameSyncWithURL() { const testDir = Deno.makeTempDirSync(); const oldpath = testDir + "/oldpath"; @@ -63,7 +63,7 @@ unitTest( ); unitTest( - { perms: { read: false, write: true } }, + { permissions: { read: false, write: true } }, function renameSyncReadPerm() { assertThrows(() => { const oldpath = "/oldbaddir"; @@ -74,7 +74,7 @@ unitTest( ); unitTest( - { perms: { read: true, write: false } }, + { permissions: { read: true, write: false } }, function renameSyncWritePerm() { assertThrows(() => { const oldpath = "/oldbaddir"; @@ -85,7 +85,7 @@ unitTest( ); unitTest( - { perms: { read: true, write: true } }, + { permissions: { read: true, write: true } }, async function renameSuccess() { const testDir = Deno.makeTempDirSync(); const oldpath = testDir + "/oldpath"; @@ -98,7 +98,7 @@ unitTest( ); unitTest( - { perms: { read: true, write: true } }, + { permissions: { read: true, write: true } }, async function renameWithURL() { const testDir = Deno.makeTempDirSync(); const oldpath = testDir + "/oldpath"; @@ -126,7 +126,10 @@ function writeFileString(filename: string, s: string) { } unitTest( - { ignore: Deno.build.os === "windows", perms: { read: true, write: true } }, + { + ignore: Deno.build.os === "windows", + permissions: { read: true, write: true }, + }, function renameSyncErrorsUnix() { const testDir = Deno.makeTempDirSync(); const oldfile = testDir + "/oldfile"; @@ -201,7 +204,10 @@ unitTest( ); unitTest( - { ignore: Deno.build.os !== "windows", perms: { read: true, write: true } }, + { + ignore: Deno.build.os !== "windows", + permissions: { read: true, write: true }, + }, function renameSyncErrorsWin() { const testDir = Deno.makeTempDirSync(); const oldfile = testDir + "/oldfile"; |