summaryrefslogtreecommitdiff
path: root/fs/path/parse_format_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'fs/path/parse_format_test.ts')
-rw-r--r--fs/path/parse_format_test.ts28
1 files changed, 14 insertions, 14 deletions
diff --git a/fs/path/parse_format_test.ts b/fs/path/parse_format_test.ts
index 3bf3c462b..29d840453 100644
--- a/fs/path/parse_format_test.ts
+++ b/fs/path/parse_format_test.ts
@@ -2,7 +2,7 @@
// Ported from https://github.com/browserify/path-browserify/
import { test } from "../../testing/mod.ts";
-import { assertEq } from "../../testing/asserts.ts";
+import { assertEquals } from "../../testing/asserts.ts";
import * as path from "./mod.ts";
const winPaths = [
@@ -131,15 +131,15 @@ function checkParseFormat(path, paths) {
paths.forEach(function(p) {
const element = p[0];
const output = path.parse(element);
- assertEq(typeof output.root, "string");
- assertEq(typeof output.dir, "string");
- assertEq(typeof output.base, "string");
- assertEq(typeof output.ext, "string");
- assertEq(typeof output.name, "string");
- assertEq(path.format(output), element);
- assertEq(output.rooroot, undefined);
- assertEq(output.dir, output.dir ? path.dirname(element) : "");
- assertEq(output.base, path.basename(element));
+ assertEquals(typeof output.root, "string");
+ assertEquals(typeof output.dir, "string");
+ assertEquals(typeof output.base, "string");
+ assertEquals(typeof output.ext, "string");
+ assertEquals(typeof output.name, "string");
+ assertEquals(path.format(output), element);
+ assertEquals(output.rooroot, undefined);
+ assertEquals(output.dir, output.dir ? path.dirname(element) : "");
+ assertEquals(output.base, path.basename(element));
});
}
@@ -149,14 +149,14 @@ function checkSpecialCaseParseFormat(path, testCases) {
const expect = testCase[1];
const output = path.parse(element);
Object.keys(expect).forEach(function(key) {
- assertEq(output[key], expect[key]);
+ assertEquals(output[key], expect[key]);
});
});
}
function checkFormat(path, testCases) {
testCases.forEach(function(testCase) {
- assertEq(path.format(testCase[0]), testCase[1]);
+ assertEquals(path.format(testCase[0]), testCase[1]);
});
}
@@ -164,7 +164,7 @@ test(function parseTrailingWin32() {
windowsTrailingTests.forEach(function(p) {
const actual = path.win32.parse(p[0] as string);
const expected = p[1];
- assertEq(actual, expected);
+ assertEquals(actual, expected);
});
});
@@ -172,6 +172,6 @@ test(function parseTrailing() {
posixTrailingTests.forEach(function(p) {
const actual = path.posix.parse(p[0] as string);
const expected = p[1];
- assertEq(actual, expected);
+ assertEquals(actual, expected);
});
});