@@ -1661,7 +1661,7 @@ describe("Rebase", function() {
16611661
16621662 return NodeGit . Rebase . init ( repository , ourAnnotatedCommit ,
16631663 theirAnnotatedCommit , null , {
1664- signingCb : ( commitContent ) => ( {
1664+ signingCb : ( commitContent ) => ( console . log ( "signingCb called" ) , {
16651665 code : NodeGit . Error . CODE . OK ,
16661666 field : "moose-sig" ,
16671667 signedData : "A moose was here."
@@ -1674,9 +1674,11 @@ describe("Rebase", function() {
16741674 // there should only be 1 rebase operation to perform
16751675 assert . equal ( rebase . operationEntrycount ( ) , 1 ) ;
16761676
1677+ console . log ( "running next operation" ) ;
16771678 return rebase . next ( ) ;
16781679 } )
16791680 . then ( function ( rebaseOperation ) {
1681+ console . log ( "completed next operation" ) ;
16801682 assert . equal ( rebaseOperation . type ( ) ,
16811683 NodeGit . RebaseOperation . REBASE_OPERATION . PICK ) ;
16821684 assert . equal ( rebaseOperation . id ( ) . toString ( ) ,
@@ -1686,9 +1688,11 @@ describe("Rebase", function() {
16861688 // after collecting garbage.
16871689 garbageCollect ( ) ;
16881690
1691+ console . log ( "running commit operation" ) ;
16891692 return rebase . commit ( null , ourSignature ) ;
16901693 } )
16911694 . then ( function ( commitOid ) {
1695+ console . log ( "completed commit operation" ) ;
16921696 assert . equal ( commitOid . toString ( ) ,
16931697 "24250fe6bd8a782ec1aaca8b2c9a2456a90517ed" ) ;
16941698
@@ -1850,7 +1854,7 @@ describe("Rebase", function() {
18501854
18511855 return NodeGit . Rebase . init ( repository , ourAnnotatedCommit ,
18521856 theirAnnotatedCommit , null , {
1853- signingCb : ( ) => ( {
1857+ signingCb : ( ) => ( console . log ( "signingCb called" ) , {
18541858 code : NodeGit . Error . CODE . PASSTHROUGH
18551859 } )
18561860 } ) ;
@@ -1860,10 +1864,12 @@ describe("Rebase", function() {
18601864
18611865 // there should only be 1 rebase operation to perform
18621866 assert . equal ( rebase . operationEntrycount ( ) , 1 ) ;
1867+ console . log ( "running next operation" ) ;
18631868
18641869 return rebase . next ( ) ;
18651870 } )
18661871 . then ( function ( rebaseOperation ) {
1872+ console . log ( "completed next operation" ) ;
18671873 assert . equal ( rebaseOperation . type ( ) ,
18681874 NodeGit . RebaseOperation . REBASE_OPERATION . PICK ) ;
18691875 assert . equal ( rebaseOperation . id ( ) . toString ( ) ,
@@ -1873,9 +1879,12 @@ describe("Rebase", function() {
18731879 // after collecting garbage.
18741880 garbageCollect ( ) ;
18751881
1882+ console . log ( "running commit operation" ) ;
1883+
18761884 return rebase . commit ( null , ourSignature ) ;
18771885 } )
18781886 . then ( function ( commitOid ) {
1887+ console . log ( "completed commit operation" ) ;
18791888 assert . equal ( commitOid . toString ( ) ,
18801889 "b937100ee0ea17ef20525306763505a7fe2be29e" ) ;
18811890
@@ -2042,7 +2051,7 @@ describe("Rebase", function() {
20422051
20432052 return NodeGit . Rebase . init ( repository , ourAnnotatedCommit ,
20442053 theirAnnotatedCommit , null , {
2045- signingCb : ( ) => ( {
2054+ signingCb : ( ) => ( console . log ( "signingCb called" ) , {
20462055 code : NodeGit . Error . CODE . ERROR
20472056 } )
20482057 } ) ;
@@ -2053,9 +2062,11 @@ describe("Rebase", function() {
20532062 // there should only be 1 rebase operation to perform
20542063 assert . equal ( rebase . operationEntrycount ( ) , 1 ) ;
20552064
2065+ console . log ( "running next operation" ) ;
20562066 return rebase . next ( ) ;
20572067 } )
20582068 . then ( function ( rebaseOperation ) {
2069+ console . log ( "completed next operation" ) ;
20592070 assert . equal ( rebaseOperation . type ( ) ,
20602071 NodeGit . RebaseOperation . REBASE_OPERATION . PICK ) ;
20612072 assert . equal ( rebaseOperation . id ( ) . toString ( ) ,
@@ -2065,11 +2076,14 @@ describe("Rebase", function() {
20652076 // after collecting garbage.
20662077 garbageCollect ( ) ;
20672078
2079+ console . log ( "running commit operation" ) ;
20682080 return rebase . commit ( null , ourSignature ) ;
20692081 } )
20702082 . then ( function ( ) {
2083+ console . log ( "completed commit operation" ) ;
20712084 assert . fail ( "rebase.commit should have failed" ) ;
20722085 } , function ( error ) {
2086+ console . log ( "completed commit operation" ) ;
20732087 if ( error && error . errno === NodeGit . Error . CODE . ERROR ) {
20742088 return ;
20752089 }
0 commit comments