Skip to content

Commit 94e5eaa

Browse files
Trottbengl
authored andcommitted
test: add test case for reverted 17.7 regression
Refs: #42279 PR-URL: #42283 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Mestery <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent e43aa30 commit 94e5eaa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/parallel/test-url-relative.js

+1
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)