Skip to content

Commit

Permalink
chore: add test case for reverted 17.7 regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Mar 10, 2022
1 parent 72e83fc commit a1ccf0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/parallel/test-url-relative.js
Original file line number Diff line number Diff line change
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 a1ccf0a

Please sign in to comment.