summaryrefslogtreecommitdiff
path: root/fs/ensure_file_test.ts
diff options
context:
space:
mode:
authorAxetroy <troy450409405@gmail.com>2019-03-20 01:22:33 +0800
committerRyan Dahl <ry@tinyclouds.org>2019-03-19 13:22:33 -0400
commiteaa795d477948c11a99d0c1cf42f25ba668d892f (patch)
tree6542a62a6e343d9d6863e9514878d197bdf7650d /fs/ensure_file_test.ts
parent4ac66ec6401ff007193d6fb923dab8ae0839662d (diff)
fix: wrong usage of assertThrowsAsync which without await keyword (denoland/deno_std#295)
Original: https://github.com/denoland/deno_std/commit/59adafe86710038c6864fc0686f0292bf7fd9b1d
Diffstat (limited to 'fs/ensure_file_test.ts')
-rw-r--r--fs/ensure_file_test.ts4
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.");
});