Permalink
Browse files

test: expand test coverage for url.js

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

PR-URL: #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>
  • Loading branch information...
jun-oka authored and jasnell committed Oct 7, 2016
1 parent 90cd39f commit 7084b9c5a179098edc8952c3348fc66c61ddcfc6
Showing with 11 additions and 0 deletions.
  1. +11 −0 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',

0 comments on commit 7084b9c

Please sign in to comment.