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.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/unit/mkdir_test.ts b/cli/tests/unit/mkdir_test.ts
index 586c1ebe3..931462743 100644
--- a/cli/tests/unit/mkdir_test.ts
+++ b/cli/tests/unit/mkdir_test.ts
@@ -2,8 +2,8 @@
import {
assert,
assertEquals,
+ assertRejects,
assertThrows,
- assertThrowsAsync,
pathToAbsoluteFileUrl,
unitTest,
} from "./test_util.ts";
@@ -65,7 +65,7 @@ unitTest({ perms: { write: true } }, function mkdirErrSyncIfExists() {
});
unitTest({ perms: { write: true } }, async function mkdirErrIfExists() {
- await assertThrowsAsync(async () => {
+ await assertRejects(async () => {
await Deno.mkdir(".");
}, Deno.errors.AlreadyExists);
});