Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit fb93ab4

Browse files
mmaleckibnoordhuis
authored andcommitted
test: test for correct parsing of URLs with plus character in protocol
1 parent d055294 commit fb93ab4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/simple/test-url.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,13 @@ var parseTests = {
335335
hostname: 'bucket_name.s3.amazonaws.com',
336336
pathname: '/image.jpg',
337337
href: 'http://bucket_name.s3.amazonaws.com/image.jpg'
338+
},
339+
'git+http://github.com/joyent/node.git': {
340+
protocol: 'git+http:',
341+
slashes: true,
342+
host: 'github.com',
343+
pathname: '/joyent/node.git',
344+
href: 'git+http://github.com/joyent/node.git'
338345
}
339346
};
340347

0 commit comments

Comments
 (0)