Skip to content

Commit f0bebe4

Browse files
committed
fix and add tests
1 parent 791a7ce commit f0bebe4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

test/tests/merge.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@ describe("Merge", function() {
213213
});
214214
})
215215
.then(function() {
216-
return repository.mergeBranches(ourBranchName, theirBranchName);
216+
return repository.mergeBranches(
217+
ourBranchName,
218+
theirBranchName,
219+
ourSignature);
217220
})
218221
.then(function(oid) {
219222
assert.equal(oid.toString(),

test/tests/repository.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ describe("Repository", function() {
77

88
var Repository = require("../../lib/repository");
99
var Index = require("../../lib/index");
10+
var Signature = require("../../lib/signature");
1011

1112
before(function() {
1213
var test = this;
@@ -58,4 +59,10 @@ describe("Repository", function() {
5859
assert.equal(branch.shorthand(), "master");
5960
});
6061
});
62+
63+
it("can get the default signature", function() {
64+
var sig = this.repository.defaultSignature();
65+
66+
assert(sig instanceof Signature);
67+
});
6168
});

0 commit comments

Comments
 (0)