summaryrefslogtreecommitdiff
path: root/std/path/parse_format_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/path/parse_format_test.ts')
-rw-r--r--std/path/parse_format_test.ts18
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];