Skip to content

Commit 860f6de

Browse files
committed
test: add test case for reverted 17.7 regression
Refs: #42279
1 parent f91950c commit 860f6de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/parallel/test-url-relative.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const relativeTests = [
5353
['/foo/bar/baz', '/../etc/passwd', '/etc/passwd'],
5454
['http://localhost', 'file:///Users/foo', 'file:///Users/foo'],
5555
['http://localhost', 'file://foo/Users', 'file://foo/Users'],
56+
['https://registry.npmjs.org', '@foo/bar', 'https://registry.npmjs.org/@foo/bar'],
5657
];
5758
relativeTests.forEach(function(relativeTest) {
5859
const a = url.resolve(relativeTest[0], relativeTest[1]);

0 commit comments

Comments
 (0)