summaryrefslogtreecommitdiff
path: root/std/path/zero_length_strings_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-28 12:33:09 +0200
committerGitHub <noreply@github.com>2020-04-28 12:33:09 +0200
commit8feb30e3258ed9690eb850e3ca22842b260a0403 (patch)
tree6805bfe3df675c2c7f6a379093061c6b73d8365a /std/path/zero_length_strings_test.ts
parentb508e845671de9351c3f51755647371d76128d29 (diff)
BREAKING: remove overload of Deno.test() (#4951)
This commit removes overload of Deno.test() that accepted named function.
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), "");