summaryrefslogtreecommitdiff
path: root/cli/tests/unit/remove_test.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2020-07-14 15:24:17 -0400
committerGitHub <noreply@github.com>2020-07-14 15:24:17 -0400
commitcde4dbb35132848ffece59ef9cfaccff32347124 (patch)
treecc7830968c6decde704c8cfb83c9185193dc698f /cli/tests/unit/remove_test.ts
parent9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff)
Use dprint for internal formatting (#6682)
Diffstat (limited to 'cli/tests/unit/remove_test.ts')
-rw-r--r--cli/tests/unit/remove_test.ts26
1 files changed, 13 insertions, 13 deletions
diff --git a/cli/tests/unit/remove_test.ts b/cli/tests/unit/remove_test.ts
index 42160af5c..14c960da5 100644
--- a/cli/tests/unit/remove_test.ts
+++ b/cli/tests/unit/remove_test.ts
@@ -23,7 +23,7 @@ unitTest(
Deno.statSync(path);
}, Deno.errors.NotFound);
}
- }
+ },
);
unitTest(
@@ -43,7 +43,7 @@ unitTest(
Deno.statSync(filename);
}, Deno.errors.NotFound);
}
- }
+ },
);
unitTest(
@@ -56,7 +56,7 @@ unitTest(
const tempDir = Deno.makeTempDirSync();
const fileUrl = new URL(
- `file://${Deno.build.os === "windows" ? "/" : ""}${tempDir}/test.txt`
+ `file://${Deno.build.os === "windows" ? "/" : ""}${tempDir}/test.txt`,
);
Deno.writeFileSync(fileUrl, data, { mode: 0o666 });
@@ -68,7 +68,7 @@ unitTest(
Deno.statSync(fileUrl);
}, Deno.errors.NotFound);
}
- }
+ },
);
unitTest(
@@ -95,7 +95,7 @@ unitTest(
await Deno[method]("/baddir");
}, Deno.errors.NotFound);
}
- }
+ },
);
unitTest(
@@ -117,7 +117,7 @@ unitTest(
Deno.lstatSync(danglingSymlinkPath);
}, Deno.errors.NotFound);
}
- }
+ },
);
unitTest(
@@ -143,7 +143,7 @@ unitTest(
}, Deno.errors.NotFound);
await Deno[method](filePath);
}
- }
+ },
);
unitTest({ perms: { write: false } }, async function removePerm(): Promise<
@@ -171,7 +171,7 @@ unitTest(
() => {
Deno.statSync(path);
}, // Directory is gone
- Deno.errors.NotFound
+ Deno.errors.NotFound,
);
// REMOVE NON-EMPTY DIRECTORY
@@ -190,7 +190,7 @@ unitTest(
}, Deno.errors.NotFound);
// Directory is gone
}
- }
+ },
);
unitTest(
@@ -211,7 +211,7 @@ unitTest(
}, Deno.errors.NotFound);
// File is gone
}
- }
+ },
);
unitTest({ perms: { write: true } }, async function removeAllFail(): Promise<
@@ -254,7 +254,7 @@ unitTest(
Deno.statSync(path);
}, Deno.errors.NotFound);
}
- }
+ },
);
if (Deno.build.os === "windows") {
@@ -272,7 +272,7 @@ if (Deno.build.os === "windows") {
await assertThrowsAsync(async () => {
await Deno.lstat("file_link");
}, Deno.errors.NotFound);
- }
+ },
);
unitTest(
@@ -290,6 +290,6 @@ if (Deno.build.os === "windows") {
await assertThrowsAsync(async () => {
await Deno.lstat("dir_link");
}, Deno.errors.NotFound);
- }
+ },
);
}