Skip to content

Commit 7fc6645

Browse files
omsmithsilverwind
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 <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
1 parent e326950 commit 7fc6645

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)