Skip to content

Commit e3f3679

Browse files
committed
test: add test-cases for posix path.relative()
adds posix test cases for paths similar to those that caused #5447
1 parent 80fd741 commit e3f3679

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/parallel/test-path.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,9 @@ const relativeTests = [
488488
['/var/', '/var/lib', 'lib'],
489489
['/', '/var/lib', 'var/lib'],
490490
['/foo/test', '/foo/test/bar/package.json', 'bar/package.json'],
491-
['/Users/a/web/b/test/mails', '/Users/a/web/b', '../..']
491+
['/Users/a/web/b/test/mails', '/Users/a/web/b', '../..'],
492+
['/foo/bar/baz-quux', '/foo/bar/baz', '../baz'],
493+
['/foo/bar/baz', '/foo/bar/baz-quux', '../baz-quux']
492494
]
493495
]
494496
];

0 commit comments

Comments
 (0)