diff options
Diffstat (limited to 'cli/js/chmod_test.ts')
-rw-r--r-- | cli/js/chmod_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/js/chmod_test.ts b/cli/js/chmod_test.ts index 9edc7afee..8731fad22 100644 --- a/cli/js/chmod_test.ts +++ b/cli/js/chmod_test.ts @@ -10,7 +10,7 @@ unitTest( const data = enc.encode("Hello"); const tempDir = Deno.makeTempDirSync(); const filename = tempDir + "/test.txt"; - Deno.writeFileSync(filename, data, { perm: 0o666 }); + Deno.writeFileSync(filename, data, { mode: 0o666 }); // On windows no effect, but should not crash Deno.chmodSync(filename, 0o777); @@ -36,7 +36,7 @@ unitTest( const tempDir = Deno.makeTempDirSync(); const filename = tempDir + "/test.txt"; - Deno.writeFileSync(filename, data, { perm: 0o666 }); + Deno.writeFileSync(filename, data, { mode: 0o666 }); const symlinkName = tempDir + "/test_symlink.txt"; Deno.symlinkSync(filename, symlinkName); @@ -85,7 +85,7 @@ unitTest( const data = enc.encode("Hello"); const tempDir = Deno.makeTempDirSync(); const filename = tempDir + "/test.txt"; - Deno.writeFileSync(filename, data, { perm: 0o666 }); + Deno.writeFileSync(filename, data, { mode: 0o666 }); // On windows no effect, but should not crash await Deno.chmod(filename, 0o777); @@ -112,7 +112,7 @@ unitTest( const tempDir = Deno.makeTempDirSync(); const filename = tempDir + "/test.txt"; - Deno.writeFileSync(filename, data, { perm: 0o666 }); + Deno.writeFileSync(filename, data, { mode: 0o666 }); const symlinkName = tempDir + "/test_symlink.txt"; Deno.symlinkSync(filename, symlinkName); |