summaryrefslogtreecommitdiff
path: root/std/fs/ensure_symlink_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/fs/ensure_symlink_test.ts')
-rw-r--r--std/fs/ensure_symlink_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/fs/ensure_symlink_test.ts b/std/fs/ensure_symlink_test.ts
index 8017bcebf..2357650ab 100644
--- a/std/fs/ensure_symlink_test.ts
+++ b/std/fs/ensure_symlink_test.ts
@@ -15,13 +15,13 @@ Deno.test(async function ensureSymlinkIfItNotExist(): Promise<void> {
const testDir = path.join(testdataDir, "link_file_1");
const testFile = path.join(testDir, "test.txt");
- assertThrowsAsync(
+ await assertThrowsAsync(
async (): Promise<void> => {
await ensureSymlink(testFile, path.join(testDir, "test1.txt"));
}
);
- assertThrowsAsync(
+ await assertThrowsAsync(
async (): Promise<void> => {
await Deno.stat(testFile).then((): void => {
throw new Error("test file should exists.");