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/path/dirname_test.ts | |
parent | 26bf56afdaf16634ffbaa23684faf3a44cc10f62 (diff) |
refactor: Don't destructure the Deno namespace (#6268)
Diffstat (limited to 'std/path/dirname_test.ts')
-rw-r--r-- | std/path/dirname_test.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/std/path/dirname_test.ts b/std/path/dirname_test.ts index a00c8bc46..bdf3391a9 100644 --- a/std/path/dirname_test.ts +++ b/std/path/dirname_test.ts @@ -1,11 +1,9 @@ // Copyright the Browserify authors. MIT License. // Ported from https://github.com/browserify/path-browserify/ - -const { test } = Deno; import { assertEquals } from "../testing/asserts.ts"; import * as path from "./mod.ts"; -test("dirname", function () { +Deno.test("dirname", function () { assertEquals(path.posix.dirname("/a/b/"), "/a"); assertEquals(path.posix.dirname("/a/b"), "/a"); assertEquals(path.posix.dirname("/a"), "/"); @@ -16,7 +14,7 @@ test("dirname", function () { assertEquals(path.posix.dirname("foo"), "."); }); -test("dirnameWin32", function () { +Deno.test("dirnameWin32", function () { assertEquals(path.win32.dirname("c:\\"), "c:\\"); assertEquals(path.win32.dirname("c:\\foo"), "c:\\"); assertEquals(path.win32.dirname("c:\\foo\\"), "c:\\"); |