Browse Source

test: expand test coverage for url.js

Add url example with more than 255 characters in the hostname
of the url.

PR-URL: https://github.com/nodejs/node/pull/8976
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
v7.x
Junshu Okamoto 8 years ago
committed by James M Snell
parent
commit
35fc3866b7
  1. 11
      test/parallel/test-url.js

11
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',

Loading…
Cancel
Save