diff options
Diffstat (limited to 'fs/ensure_dir_test.ts')
| -rw-r--r-- | fs/ensure_dir_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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."); }); |
