test: test for correct parsing of URLs with plus character in protocol

v0.7.4-release
Maciej Małecki 2011-09-05 21:16:00 +02:00 committed by Ben Noordhuis
parent d0552949b9
commit fb93ab4125
1 changed files with 7 additions and 0 deletions

View File

@ -335,6 +335,13 @@ var parseTests = {
hostname: 'bucket_name.s3.amazonaws.com', hostname: 'bucket_name.s3.amazonaws.com',
pathname: '/image.jpg', pathname: '/image.jpg',
href: 'http://bucket_name.s3.amazonaws.com/image.jpg' href: 'http://bucket_name.s3.amazonaws.com/image.jpg'
},
'git+http://github.com/joyent/node.git': {
protocol: 'git+http:',
slashes: true,
host: 'github.com',
pathname: '/joyent/node.git',
href: 'git+http://github.com/joyent/node.git'
} }
}; };