From eaa795d477948c11a99d0c1cf42f25ba668d892f Mon Sep 17 00:00:00 2001 From: Axetroy Date: Wed, 20 Mar 2019 01:22:33 +0800 Subject: fix: wrong usage of assertThrowsAsync which without await keyword (denoland/deno_std#295) Original: https://github.com/denoland/deno_std/commit/59adafe86710038c6864fc0686f0292bf7fd9b1d --- fs/ensure_dir_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fs/ensure_dir_test.ts') diff --git a/fs/ensure_dir_test.ts b/fs/ensure_dir_test.ts index abf34221f..2e7936ae9 100644 --- a/fs/ensure_dir_test.ts +++ b/fs/ensure_dir_test.ts @@ -12,7 +12,7 @@ test(async function ensureDirIfItNotExist() { await ensureDir(testDir); - assertThrowsAsync(async () => { + await assertThrowsAsync(async () => { await Deno.stat(testDir).then(() => { throw new Error("test dir should exists."); }); @@ -44,7 +44,7 @@ test(async function ensureDirIfItExist() { await ensureDir(testDir); - assertThrowsAsync(async () => { + await assertThrowsAsync(async () => { await Deno.stat(testDir).then(() => { throw new Error("test dir should still exists."); }); -- cgit v1.2.3