From 20692f3e844816d7d4a4f4fdfbfe30e416822350 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Wed, 22 Sep 2021 21:21:11 +0800 Subject: chore: replace calls to assertThrowsAsync with assertRejects (#12176) --- cli/tests/unit/mkdir_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/tests/unit/mkdir_test.ts') 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); }); -- cgit v1.2.3