mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: add test case for reverted 17.7 regression
Refs: https://github.com/nodejs/node/issues/42279 PR-URL: https://github.com/nodejs/node/pull/42283 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
e43aa30982
commit
94e5eaa7e9
1 file changed
+1
@@ -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]);
|
||||
|
||||
Reference in new issue
Block a user