Skip to content

Commit 3f2c41f

Browse files
committed
Add a test for Repository's getReferenceCommit
Signed-off-by: Remy Suen <remy.suen@gmail.com>
1 parent 4a66926 commit 3f2c41f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/tests/repository.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,16 @@ describe("Repository", function() {
109109
});
110110
});
111111

112+
it("can get a reference commit", function() {
113+
return this.repository.getReferenceCommit("master")
114+
.then(function(commit) {
115+
assert.equal(
116+
"32789a79e71fbc9e04d3eff7425e1771eb595150",
117+
commit.toString()
118+
);
119+
});
120+
});
121+
112122
it("can get the default signature", function() {
113123
var sig = this.repository.defaultSignature();
114124

0 commit comments

Comments
 (0)