summaryrefslogtreecommitdiff
path: root/cli/tests/unit/mkdir_test.ts
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-09-22 21:21:11 +0800
committerGitHub <noreply@github.com>2021-09-22 09:21:11 -0400
commit20692f3e844816d7d4a4f4fdfbfe30e416822350 (patch)
treefbecfd548b6bf479a663f79d80c45d61fc63125b /cli/tests/unit/mkdir_test.ts
parent82cfb46bd1d64d41afda544bde9ef57096fb520b (diff)
chore: replace calls to assertThrowsAsync with assertRejects (#12176)
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);
});