summaryrefslogtreecommitdiff
path: root/cli/tests/unit/mkdir_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/mkdir_test.ts')
-rw-r--r--cli/tests/unit/mkdir_test.ts20
1 files changed, 14 insertions, 6 deletions
diff --git a/cli/tests/unit/mkdir_test.ts b/cli/tests/unit/mkdir_test.ts
index 2e84ed06f..b06a1cd4c 100644
--- a/cli/tests/unit/mkdir_test.ts
+++ b/cli/tests/unit/mkdir_test.ts
@@ -59,15 +59,23 @@ unitTest(
);
unitTest({ permissions: { write: true } }, function mkdirErrSyncIfExists() {
- assertThrows(() => {
- Deno.mkdirSync(".");
- }, Deno.errors.AlreadyExists);
+ assertThrows(
+ () => {
+ Deno.mkdirSync(".");
+ },
+ Deno.errors.AlreadyExists,
+ `mkdir '.'`,
+ );
});
unitTest({ permissions: { write: true } }, async function mkdirErrIfExists() {
- await assertRejects(async () => {
- await Deno.mkdir(".");
- }, Deno.errors.AlreadyExists);
+ await assertRejects(
+ async () => {
+ await Deno.mkdir(".");
+ },
+ Deno.errors.AlreadyExists,
+ `mkdir '.'`,
+ );
});
unitTest(