diff options
Diffstat (limited to 'fs/ensure_file_test.ts')
| -rw-r--r-- | fs/ensure_file_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ensure_file_test.ts b/fs/ensure_file_test.ts index b98d7c4e0..2199e3605 100644 --- a/fs/ensure_file_test.ts +++ b/fs/ensure_file_test.ts @@ -12,7 +12,7 @@ test(async function ensureFileIfItNotExist() { await ensureFile(testFile); - assertThrowsAsync(async () => { + await assertThrowsAsync(async () => { await Deno.stat(testFile).then(() => { throw new Error("test file should exists."); }); @@ -44,7 +44,7 @@ test(async function ensureFileIfItExist() { await ensureFile(testFile); - assertThrowsAsync(async () => { + await assertThrowsAsync(async () => { await Deno.stat(testFile).then(() => { throw new Error("test file should exists."); }); |
