Skip to content

Commit c83725c

Browse files
omsmithrvagg
authored andcommitted
test: add test-cases for posix path.relative()
adds posix test cases for paths similar to those that caused #5447 PR-URL: #5456 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Roman Reiss <me@silverwind.io>
1 parent 871396c commit c83725c

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)