From a1ccf0ab5dcebe2f7e960126706b6c827658fc4e Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 10 Mar 2022 06:13:40 -0800 Subject: [PATCH] chore: add test case for reverted 17.7 regression Refs: https://github.com/nodejs/node/issues/42279 --- test/parallel/test-url-relative.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/parallel/test-url-relative.js b/test/parallel/test-url-relative.js index 1eb2bdc58fc3a6..9a398a0e508f33 100644 --- a/test/parallel/test-url-relative.js +++ b/test/parallel/test-url-relative.js @@ -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]);