File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff 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 ( ) ,
Original file line number Diff line number Diff 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} ) ;
You can’t perform that action at this time.
0 commit comments