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/resolve_test.ts | |
parent | 26bf56afdaf16634ffbaa23684faf3a44cc10f62 (diff) |
refactor: Don't destructure the Deno namespace (#6268)
Diffstat (limited to 'std/path/resolve_test.ts')
-rw-r--r-- | std/path/resolve_test.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/std/path/resolve_test.ts b/std/path/resolve_test.ts index 36a537b7a..dec032f47 100644 --- a/std/path/resolve_test.ts +++ b/std/path/resolve_test.ts @@ -1,7 +1,5 @@ // Copyright the Browserify authors. MIT License. // Ported from https://github.com/browserify/path-browserify/ - -const { cwd, test } = Deno; import { assertEquals } from "../testing/asserts.ts"; import * as path from "./mod.ts"; @@ -28,13 +26,13 @@ const posixTests = [ [["/var/lib", "../", "file/"], "/var/file"], [["/var/lib", "/../", "file/"], "/file"], - [["a/b/c/", "../../.."], cwd()], - [["."], cwd()], + [["a/b/c/", "../../.."], Deno.cwd()], + [["."], Deno.cwd()], [["/some/dir", ".", "/absolute/"], "/absolute"], [["/foo/tmp.3/", "../tmp.3/cycles/root.js"], "/foo/tmp.3/cycles/root.js"], ]; -test("resolve", function () { +Deno.test("resolve", function () { posixTests.forEach(function (p) { const _p = p[0] as string[]; const actual = path.posix.resolve.apply(null, _p); @@ -42,7 +40,7 @@ test("resolve", function () { }); }); -test("resolveWin32", function () { +Deno.test("resolveWin32", function () { windowsTests.forEach(function (p) { const _p = p[0] as string[]; const actual = path.win32.resolve.apply(null, _p); |