summaryrefslogtreecommitdiff
path: root/std/path/zero_length_strings_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/path/zero_length_strings_test.ts')
-rw-r--r--std/path/zero_length_strings_test.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/std/path/zero_length_strings_test.ts b/std/path/zero_length_strings_test.ts
index 128ba242d..771395a8c 100644
--- a/std/path/zero_length_strings_test.ts
+++ b/std/path/zero_length_strings_test.ts
@@ -7,7 +7,7 @@ import * as path from "./mod.ts";
const pwd = cwd();
-test(function joinZeroLength() {
+test("joinZeroLength", function () {
// join will internally ignore all the zero-length strings and it will return
// '.' if the joined string is a zero-length string.
assertEquals(path.posix.join(""), ".");
@@ -18,28 +18,28 @@ test(function joinZeroLength() {
assertEquals(path.join(pwd, ""), pwd);
});
-test(function normalizeZeroLength() {
+test("normalizeZeroLength", function () {
// normalize will return '.' if the input is a zero-length string
assertEquals(path.posix.normalize(""), ".");
if (path.win32) assertEquals(path.win32.normalize(""), ".");
assertEquals(path.normalize(pwd), pwd);
});
-test(function isAbsoluteZeroLength() {
+test("isAbsoluteZeroLength", function () {
// Since '' is not a valid path in any of the common environments,
// return false
assertEquals(path.posix.isAbsolute(""), false);
if (path.win32) assertEquals(path.win32.isAbsolute(""), false);
});
-test(function resolveZeroLength() {
+test("resolveZeroLength", function () {
// resolve, internally ignores all the zero-length strings and returns the
// current working directory
assertEquals(path.resolve(""), pwd);
assertEquals(path.resolve("", ""), pwd);
});
-test(function relativeZeroLength() {
+test("relativeZeroLength", function () {
// relative, internally calls resolve. So, '' is actually the current
// directory
assertEquals(path.relative("", pwd), "");