From 94e5eaa7e9e9dcfad57da43d3863c8b52ae09f18 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 10 Mar 2022 21:30:25 -0800 Subject: [PATCH] test: add test case for reverted 17.7 regression MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://github.com/nodejs/node/issues/42279 PR-URL: https://github.com/nodejs/node/pull/42283 Reviewed-By: Richard Lau Reviewed-By: Darshan Sen Reviewed-By: Antoine du Hamel Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: Mestery Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- 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]);