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/parse_format_test.ts | |
parent | 26bf56afdaf16634ffbaa23684faf3a44cc10f62 (diff) |
refactor: Don't destructure the Deno namespace (#6268)
Diffstat (limited to 'std/path/parse_format_test.ts')
-rw-r--r-- | std/path/parse_format_test.ts | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/std/path/parse_format_test.ts b/std/path/parse_format_test.ts index bc58679cf..80692a84d 100644 --- a/std/path/parse_format_test.ts +++ b/std/path/parse_format_test.ts @@ -1,12 +1,10 @@ // Copyright the Browserify authors. MIT License. // Ported from https://github.com/browserify/path-browserify/ - -// TODO(kt3k): fix any types in this file - -const { test } = Deno; import { assertEquals } from "../testing/asserts.ts"; import * as path from "./mod.ts"; +// TODO(kt3k): fix any types in this file + const winPaths = [ // [path, root] ["C:\\path\\dir\\index.html", "C:\\"], @@ -116,20 +114,20 @@ function checkFormat(path: any, testCases: unknown[][]): void { }); } -test("parseWin32", function () { +Deno.test("parseWin32", function () { checkParseFormat(path.win32, winPaths); checkSpecialCaseParseFormat(path.win32, winSpecialCaseParseTests); }); -test("parse", function () { +Deno.test("parse", function () { checkParseFormat(path.posix, unixPaths); }); -test("formatWin32", function () { +Deno.test("formatWin32", function () { checkFormat(path.win32, winSpecialCaseFormatTests); }); -test("format", function () { +Deno.test("format", function () { checkFormat(path.posix, unixSpecialCaseFormatTests); }); @@ -165,7 +163,7 @@ const posixTrailingTests = [ ], ]; -test("parseTrailingWin32", function () { +Deno.test("parseTrailingWin32", function () { windowsTrailingTests.forEach(function (p) { const actual = path.win32.parse(p[0] as string); const expected = p[1]; @@ -173,7 +171,7 @@ test("parseTrailingWin32", function () { }); }); -test("parseTrailing", function () { +Deno.test("parseTrailing", function () { posixTrailingTests.forEach(function (p) { const actual = path.posix.parse(p[0] as string); const expected = p[1]; |