mirror of https://github.com/nodejs/node.git
test: add test-cases for posix path.relative()
adds posix test cases for paths similar to those that caused #5447 PR-URL: https://github.com/nodejs/node/pull/5456 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Roman Reiss <me@silverwind.io>pull/5456/merge
parent
e326950498
commit
7fc6645982
|
@ -488,7 +488,9 @@ const relativeTests = [
|
|||
['/var/', '/var/lib', 'lib'],
|
||||
['/', '/var/lib', 'var/lib'],
|
||||
['/foo/test', '/foo/test/bar/package.json', 'bar/package.json'],
|
||||
['/Users/a/web/b/test/mails', '/Users/a/web/b', '../..']
|
||||
['/Users/a/web/b/test/mails', '/Users/a/web/b', '../..'],
|
||||
['/foo/bar/baz-quux', '/foo/bar/baz', '../baz'],
|
||||
['/foo/bar/baz', '/foo/bar/baz-quux', '../baz-quux']
|
||||
]
|
||||
]
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue