summaryrefslogtreecommitdiff
path: root/cli/tests/unit/make_temp_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/make_temp_test.ts')
-rw-r--r--cli/tests/unit/make_temp_test.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/cli/tests/unit/make_temp_test.ts b/cli/tests/unit/make_temp_test.ts
index 99559623f..da39be2de 100644
--- a/cli/tests/unit/make_temp_test.ts
+++ b/cli/tests/unit/make_temp_test.ts
@@ -7,7 +7,7 @@ import {
unitTest,
} from "./test_util.ts";
-unitTest({ perms: { write: true } }, function makeTempDirSyncSuccess() {
+unitTest({ permissions: { write: true } }, function makeTempDirSyncSuccess() {
const dir1 = Deno.makeTempDirSync({ prefix: "hello", suffix: "world" });
const dir2 = Deno.makeTempDirSync({ prefix: "hello", suffix: "world" });
// Check that both dirs are different.
@@ -29,7 +29,7 @@ unitTest({ perms: { write: true } }, function makeTempDirSyncSuccess() {
});
unitTest(
- { perms: { read: true, write: true } },
+ { permissions: { read: true, write: true } },
function makeTempDirSyncMode() {
const path = Deno.makeTempDirSync();
const pathInfo = Deno.statSync(path);
@@ -47,7 +47,7 @@ unitTest(function makeTempDirSyncPerm() {
});
unitTest(
- { perms: { write: true } },
+ { permissions: { write: true } },
async function makeTempDirSuccess() {
const dir1 = await Deno.makeTempDir({ prefix: "hello", suffix: "world" });
const dir2 = await Deno.makeTempDir({ prefix: "hello", suffix: "world" });
@@ -71,7 +71,7 @@ unitTest(
);
unitTest(
- { perms: { read: true, write: true } },
+ { permissions: { read: true, write: true } },
async function makeTempDirMode() {
const path = await Deno.makeTempDir();
const pathInfo = Deno.statSync(path);
@@ -81,7 +81,7 @@ unitTest(
},
);
-unitTest({ perms: { write: true } }, function makeTempFileSyncSuccess() {
+unitTest({ permissions: { write: true } }, function makeTempFileSyncSuccess() {
const file1 = Deno.makeTempFileSync({ prefix: "hello", suffix: "world" });
const file2 = Deno.makeTempFileSync({ prefix: "hello", suffix: "world" });
// Check that both dirs are different.
@@ -104,7 +104,7 @@ unitTest({ perms: { write: true } }, function makeTempFileSyncSuccess() {
});
unitTest(
- { perms: { read: true, write: true } },
+ { permissions: { read: true, write: true } },
function makeTempFileSyncMode() {
const path = Deno.makeTempFileSync();
const pathInfo = Deno.statSync(path);
@@ -122,7 +122,7 @@ unitTest(function makeTempFileSyncPerm() {
});
unitTest(
- { perms: { write: true } },
+ { permissions: { write: true } },
async function makeTempFileSuccess() {
const file1 = await Deno.makeTempFile({ prefix: "hello", suffix: "world" });
const file2 = await Deno.makeTempFile({ prefix: "hello", suffix: "world" });
@@ -147,7 +147,7 @@ unitTest(
);
unitTest(
- { perms: { read: true, write: true } },
+ { permissions: { read: true, write: true } },
async function makeTempFileMode() {
const path = await Deno.makeTempFile();
const pathInfo = Deno.statSync(path);