Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7fc6645

Browse filesBrowse 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 <mscdex@mscdex.net> Reviewed-By: Roman Reiss <me@silverwind.io>
1 parent e326950 commit 7fc6645
Copy full SHA for 7fc6645

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-path.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-path.js
+3-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.