Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix and add tests
  • Loading branch information
maxkorp committed Dec 4, 2014
commit f0bebe4490d1dd71626d592bbb01baabf6397d31
5 changes: 4 additions & 1 deletion test/tests/merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,10 @@ describe("Merge", function() {
});
})
.then(function() {
return repository.mergeBranches(ourBranchName, theirBranchName);
return repository.mergeBranches(
ourBranchName,
theirBranchName,
ourSignature);
})
.then(function(oid) {
assert.equal(oid.toString(),
Expand Down
7 changes: 7 additions & 0 deletions test/tests/repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ describe("Repository", function() {

var Repository = require("../../lib/repository");
var Index = require("../../lib/index");
var Signature = require("../../lib/signature");

before(function() {
var test = this;
Expand Down Expand Up @@ -58,4 +59,10 @@ describe("Repository", function() {
assert.equal(branch.shorthand(), "master");
});
});

it("can get the default signature", function() {
var sig = this.repository.defaultSignature();

assert(sig instanceof Signature);
});
});