test: test for correct parsing of URLs with plus character in protocol
authorMaciej Małecki <maciej.malecki@notimplemented.org>
Mon, 5 Sep 2011 19:16:00 +0000 (21:16 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Tue, 6 Sep 2011 15:04:00 +0000 (17:04 +0200)
test/simple/test-url.js

index c6c4729..ff55eb2 100644 (file)
@@ -335,6 +335,13 @@ var parseTests = {
     hostname: 'bucket_name.s3.amazonaws.com',
     pathname: '/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'
   }
 };