diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-26 09:12:00 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-26 09:12:00 +0100 |
commit | 75b217fc246be108368ed0e3c3adda3dc85fd615 (patch) | |
tree | b0482e14970e6bdb95c9bbffb3fedab326c713a1 /test/git.js | |
parent | d6b44cc149fd6889f77107bb365a68079811576f (diff) | |
download | gitbook-75b217fc246be108368ed0e3c3adda3dc85fd615.zip gitbook-75b217fc246be108368ed0e3c3adda3dc85fd615.tar.gz gitbook-75b217fc246be108368ed0e3c3adda3dc85fd615.tar.bz2 |
Support ssh urls in git parsing
Diffstat (limited to 'test/git.js')
-rw-r--r-- | test/git.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/git.js b/test/git.js index 2ac1eb9..b23c83e 100644 --- a/test/git.js +++ b/test/git.js @@ -25,7 +25,7 @@ describe('GIT parser and getter', function () { it('should correctly parse an ssh url', function() { var parts = git.parseUrl("git+git@github.com:GitbookIO/gitbook.git/directory/README.md#e1594cde2c32e4ff48f6c4eff3d3d461743d74e1"); assert(parts); - assert.equal(parts.host, "git@github.com"); + assert.equal(parts.host, "ssh://git@github.com/GitbookIO/gitbook.git"); assert.equal(parts.ref, "e1594cde2c32e4ff48f6c4eff3d3d461743d74e1"); assert.equal(parts.filepath, "directory/README.md"); }); |