diff options
Diffstat (limited to 'std/node/_fs/_fs_close_test.ts')
-rw-r--r-- | std/node/_fs/_fs_close_test.ts | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/std/node/_fs/_fs_close_test.ts b/std/node/_fs/_fs_close_test.ts index 1ea324cb4..feaf92ab8 100644 --- a/std/node/_fs/_fs_close_test.ts +++ b/std/node/_fs/_fs_close_test.ts @@ -1,9 +1,8 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -const { test } = Deno; import { fail, assert, assertThrows } from "../../testing/asserts.ts"; import { close, closeSync } from "./_fs_close.ts"; -test({ +Deno.test({ name: "ASYNC: File is closed", async fn() { const tempFile: string = await Deno.makeTempFile(); @@ -28,7 +27,7 @@ test({ }, }); -test({ +Deno.test({ name: "ASYNC: Invalid fd", async fn() { await new Promise((resolve, reject) => { @@ -40,7 +39,7 @@ test({ }, }); -test({ +Deno.test({ name: "close callback should be asynchronous", async fn() { const tempFile: string = Deno.makeTempFileSync(); @@ -60,7 +59,7 @@ test({ }, }); -test({ +Deno.test({ name: "SYNC: File is closed", fn() { const tempFile: string = Deno.makeTempFileSync(); @@ -73,7 +72,7 @@ test({ }, }); -test({ +Deno.test({ name: "SYNC: Invalid fd", fn() { assertThrows(() => closeSync(-1)); |