Skip to content

Commit

Permalink
test: add test case for reverted 17.7 regression
Browse files Browse the repository at this point in the history
Refs: #42279
  • Loading branch information
Trott committed Mar 10, 2022
1 parent f91950c commit 860f6de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/parallel/test-url-relative.js
Expand Up @@ -53,6 +53,7 @@ const relativeTests = [
['/foo/bar/baz', '/../etc/passwd', '/etc/passwd'],
['http://localhost', 'file:///Users/foo', 'file:///Users/foo'],
['http://localhost', 'file://foo/Users', 'file://foo/Users'],
['https://registry.npmjs.org', '@foo/bar', 'https://registry.npmjs.org/@foo/bar'],
];
relativeTests.forEach(function(relativeTest) {
const a = url.resolve(relativeTest[0], relativeTest[1]);
Expand Down

0 comments on commit 860f6de

Please sign in to comment.