Skip to content

Commit 77e97e2

Browse files
committed
test: add missing test for empty string in path.posix.normalize()
1 parent 1758b74 commit 77e97e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/parallel/test-path-normalize.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,6 @@ assert.strictEqual(
9898
'../../../../baz'
9999
);
100100
assert.strictEqual(path.posix.normalize('foo/bar\\baz'), 'foo/bar\\baz');
101+
102+
// Missing test for empty string
103+
assert.strictEqual(path.posix.normalize(''), '.');

0 commit comments

Comments
 (0)