summaryrefslogtreecommitdiff
path: root/cli/tests/unit/copy_file_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/copy_file_test.ts')
-rw-r--r--cli/tests/unit/copy_file_test.ts24
1 files changed, 12 insertions, 12 deletions
diff --git a/cli/tests/unit/copy_file_test.ts b/cli/tests/unit/copy_file_test.ts
index c9b82c77e..cc2699bd3 100644
--- a/cli/tests/unit/copy_file_test.ts
+++ b/cli/tests/unit/copy_file_test.ts
@@ -28,7 +28,7 @@ function assertSameContent(
}
unitTest(
- { perms: { read: true, write: true } },
+ { permissions: { read: true, write: true } },
function copyFileSyncSuccess() {
const tempDir = Deno.makeTempDirSync();
const fromFilename = tempDir + "/from.txt";
@@ -45,7 +45,7 @@ unitTest(
);
unitTest(
- { perms: { read: true, write: true } },
+ { permissions: { read: true, write: true } },
function copyFileSyncByUrl() {
const tempDir = Deno.makeTempDirSync();
const fromUrl = new URL(
@@ -66,7 +66,7 @@ unitTest(
);
unitTest(
- { perms: { write: true, read: true } },
+ { permissions: { write: true, read: true } },
function copyFileSyncFailure() {
const tempDir = Deno.makeTempDirSync();
const fromFilename = tempDir + "/from.txt";
@@ -81,7 +81,7 @@ unitTest(
);
unitTest(
- { perms: { write: true, read: false } },
+ { permissions: { write: true, read: false } },
function copyFileSyncPerm1() {
assertThrows(() => {
Deno.copyFileSync("/from.txt", "/to.txt");
@@ -90,7 +90,7 @@ unitTest(
);
unitTest(
- { perms: { write: false, read: true } },
+ { permissions: { write: false, read: true } },
function copyFileSyncPerm2() {
assertThrows(() => {
Deno.copyFileSync("/from.txt", "/to.txt");
@@ -99,7 +99,7 @@ unitTest(
);
unitTest(
- { perms: { read: true, write: true } },
+ { permissions: { read: true, write: true } },
function copyFileSyncOverwrite() {
const tempDir = Deno.makeTempDirSync();
const fromFilename = tempDir + "/from.txt";
@@ -118,7 +118,7 @@ unitTest(
);
unitTest(
- { perms: { read: true, write: true } },
+ { permissions: { read: true, write: true } },
async function copyFileSuccess() {
const tempDir = Deno.makeTempDirSync();
const fromFilename = tempDir + "/from.txt";
@@ -135,7 +135,7 @@ unitTest(
);
unitTest(
- { perms: { read: true, write: true } },
+ { permissions: { read: true, write: true } },
async function copyFileByUrl() {
const tempDir = Deno.makeTempDirSync();
const fromUrl = new URL(
@@ -156,7 +156,7 @@ unitTest(
);
unitTest(
- { perms: { read: true, write: true } },
+ { permissions: { read: true, write: true } },
async function copyFileFailure() {
const tempDir = Deno.makeTempDirSync();
const fromFilename = tempDir + "/from.txt";
@@ -171,7 +171,7 @@ unitTest(
);
unitTest(
- { perms: { read: true, write: true } },
+ { permissions: { read: true, write: true } },
async function copyFileOverwrite() {
const tempDir = Deno.makeTempDirSync();
const fromFilename = tempDir + "/from.txt";
@@ -190,7 +190,7 @@ unitTest(
);
unitTest(
- { perms: { read: false, write: true } },
+ { permissions: { read: false, write: true } },
async function copyFilePerm1() {
await assertRejects(async () => {
await Deno.copyFile("/from.txt", "/to.txt");
@@ -199,7 +199,7 @@ unitTest(
);
unitTest(
- { perms: { read: true, write: false } },
+ { permissions: { read: true, write: false } },
async function copyFilePerm2() {
await assertRejects(async () => {
await Deno.copyFile("/from.txt", "/to.txt");