Skip to content

Commit 8c0e87f

Browse files
committed
Add some failing tests for path.join
1 parent bd8e4f6 commit 8c0e87f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/simple/test-path.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ assert.equal(path.extname("file."), ".");
3939

4040
assert.equal(path.join(".", "fixtures/b", "..", "/b/c.js"), "fixtures/b/c.js");
4141
assert.equal(path.join("/foo", "../../../bar"), "/bar");
42+
assert.equal(path.join('./'), '.');
43+
assert.equal(path.join('.'), '.');
44+
assert.equal(path.join('', 'foo'), 'foo');
45+
assert.equal(path.join('foo', '/bar'), 'foo/bar');
4246

4347
assert.equal(path.normalize("./fixtures///b/../b/c.js"), "fixtures/b/c.js");
4448
assert.equal(path.normalize("./fixtures///b/../b/c.js",true), "fixtures///b/c.js");

0 commit comments

Comments
 (0)