diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-06-12 20:23:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 15:23:38 -0400 |
commit | 1fff6f55c3ba98a10018c6d374795e612061e9b6 (patch) | |
tree | 12074b6d44736b11513d857e437f9e30a6bf65a4 /std/node/_fs/_fs_dirent_test.ts | |
parent | 26bf56afdaf16634ffbaa23684faf3a44cc10f62 (diff) |
refactor: Don't destructure the Deno namespace (#6268)
Diffstat (limited to 'std/node/_fs/_fs_dirent_test.ts')
-rw-r--r-- | std/node/_fs/_fs_dirent_test.ts | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/std/node/_fs/_fs_dirent_test.ts b/std/node/_fs/_fs_dirent_test.ts index 43becedd1..8c4b98214 100644 --- a/std/node/_fs/_fs_dirent_test.ts +++ b/std/node/_fs/_fs_dirent_test.ts @@ -1,4 +1,3 @@ -const { test } = Deno; import { assert, assertEquals, assertThrows } from "../../testing/asserts.ts"; import Dirent from "./_fs_dirent.ts"; @@ -9,7 +8,7 @@ class DirEntryMock implements Deno.DirEntry { isSymlink = false; } -test({ +Deno.test({ name: "Directories are correctly identified", fn() { const entry: DirEntryMock = new DirEntryMock(); @@ -22,7 +21,7 @@ test({ }, }); -test({ +Deno.test({ name: "Files are correctly identified", fn() { const entry: DirEntryMock = new DirEntryMock(); @@ -35,7 +34,7 @@ test({ }, }); -test({ +Deno.test({ name: "Symlinks are correctly identified", fn() { const entry: DirEntryMock = new DirEntryMock(); @@ -48,7 +47,7 @@ test({ }, }); -test({ +Deno.test({ name: "File name is correct", fn() { const entry: DirEntryMock = new DirEntryMock(); @@ -57,7 +56,7 @@ test({ }, }); -test({ +Deno.test({ name: "Socket and FIFO pipes aren't yet available", fn() { const entry: DirEntryMock = new DirEntryMock(); |