summaryrefslogtreecommitdiffstats
path: root/test/git.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-26 10:12:26 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-26 10:12:26 +0100
commit93bc86a0fe65943ac2ce0af28a8d81d438d17dbe (patch)
treec46871b95585f0fca2ce354c00baf19403fd464d /test/git.js
parent75b217fc246be108368ed0e3c3adda3dc85fd615 (diff)
downloadgitbook-93bc86a0fe65943ac2ce0af28a8d81d438d17dbe.zip
gitbook-93bc86a0fe65943ac2ce0af28a8d81d438d17dbe.tar.gz
gitbook-93bc86a0fe65943ac2ce0af28a8d81d438d17dbe.tar.bz2
Fix git url parsing for content references
Diffstat (limited to 'test/git.js')
-rw-r--r--test/git.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/git.js b/test/git.js
index b23c83e..9d48606 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, "ssh://git@github.com/GitbookIO/gitbook.git");
+ assert.equal(parts.host, "git@github.com:GitbookIO/gitbook.git");
assert.equal(parts.ref, "e1594cde2c32e4ff48f6c4eff3d3d461743d74e1");
assert.equal(parts.filepath, "directory/README.md");
});