diff options
Diffstat (limited to 'deps/npm/node_modules/github-url-from-git/test.js')
-rw-r--r-- | deps/npm/node_modules/github-url-from-git/test.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/deps/npm/node_modules/github-url-from-git/test.js b/deps/npm/node_modules/github-url-from-git/test.js index f0675283f..93aa38bb1 100644 --- a/deps/npm/node_modules/github-url-from-git/test.js +++ b/deps/npm/node_modules/github-url-from-git/test.js @@ -37,6 +37,16 @@ describe('parse(url)', function(){ parse(url).should.eql('https://github.com/bcoe/thumbd'); }) + it('should parse git+https://github.com/bcoe/thumbd.git', function() { + var url = 'git+https://github.com/bcoe/thumbd.git'; + parse(url).should.eql('https://github.com/bcoe/thumbd'); + }) + + it('should parse git+ssh://github.com/bcoe/thumbd.git', function() { + var url = 'git+ssh://github.com/bcoe/thumbd.git'; + parse(url).should.eql('https://github.com/bcoe/thumbd'); + }) + it('should parse https://EastCloud@github.com/EastCloud/node-websockets.git', function() { var url = 'https://EastCloud@github.com/EastCloud/node-websockets.git'; parse(url).should.eql('https://github.com/EastCloud/node-websockets'); @@ -74,7 +84,7 @@ describe('parse(url)', function(){ describe('re', function() { it('should expose GitHub url parsing regex', function() { parse.re.source.should.equal( - /^(?:https?:\/\/|git:\/\/)?(?:[^@]+@)?(gist.github.com|github.com)[:\/]([^\/]+\/[^\/]+?|[0-9]+)$/.source + /^(?:https?:\/\/|git:\/\/|git\+ssh:\/\/|git\+https:\/\/)?(?:[^@]+@)?(gist.github.com|github.com)[:\/]([^\/]+\/[^\/]+?|[0-9]+)$/.source ) }); }) |