diff --git a/test/parallel/test-url.js b/test/parallel/test-url.js index 12c3178fb9a8e2..8bbc7194732368 100644 --- a/test/parallel/test-url.js +++ b/test/parallel/test-url.js @@ -1200,6 +1200,17 @@ var formatTests = { pathname: '/' }, + // more than 255 characters in hostname which exceeds the limit + [`http://${'a'.repeat(255)}.com/node`]: { + href: 'http:///node', + protocol: 'http:', + slashes: true, + host: '', + hostname: '', + pathname: '/node', + path: '/node' + }, + // https://github.com/nodejs/node/issues/3361 'file:///home/user': { href: 'file:///home/user',