aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Ai Hoshino <ambiguous404@gmail.com> 2023-08-07 21:44:04 +0800
committerGravatar GitHub <noreply@github.com> 2023-08-07 06:44:04 -0700
commit5ce393aab815f38ce9594d8a7d481a608ee8524c (patch)
tree5a9e64ef0f24e478c0ad02ec3d3d6c8447eef7ec /test
parent00a907c7de842787e87b0d0a42d8d33704c5aaae (diff)
downloadbun-5ce393aab815f38ce9594d8a7d481a608ee8524c.tar.gz
bun-5ce393aab815f38ce9594d8a7d481a608ee8524c.tar.zst
bun-5ce393aab815f38ce9594d8a7d481a608ee8524c.zip
Fix `path.normalize` edge case. (#4042)
Close: #4041
Diffstat (limited to '')
-rw-r--r--test/js/node/path/path.test.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/js/node/path/path.test.js b/test/js/node/path/path.test.js
index fb6063968..0df4f5abb 100644
--- a/test/js/node/path/path.test.js
+++ b/test/js/node/path/path.test.js
@@ -566,6 +566,7 @@ it("path.normalize", () => {
strictEqual(path.posix.normalize("../foobar/barfoo/foo/../../../bar/../../"), "../../");
strictEqual(path.posix.normalize("../.../../foobar/../../../bar/../../baz"), "../../../../baz");
strictEqual(path.posix.normalize("foo/bar\\baz"), "foo/bar\\baz");
+ strictEqual(path.posix.normalize(""), ".");
});
it("path.resolve", () => {