File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ describe('cli', function () {
88
88
describe ( 'with mocked git' , function ( ) {
89
89
it ( '--sign signs the commit and tag' , function ( ) {
90
90
// mock git with file that writes args to gitcapture.log
91
- mockGit ( 'require("fs").appendFileSync("gitcapture.log", JSON.stringify(process.argv.splice(2)) + "\\n")' )
91
+ return mockGit ( 'require("fs").appendFileSync("gitcapture.log", JSON.stringify(process.argv.splice(2)) + "\\n")' )
92
92
. then ( function ( unmock ) {
93
93
writePackageJson ( '1.0.0' )
94
94
@@ -106,7 +106,7 @@ describe('cli', function () {
106
106
107
107
it ( 'exits with error code if git commit fails' , function ( ) {
108
108
// mock git by throwing on attempt to commit
109
- mockGit ( 'console.error("commit yourself"); process.exit(128);' , 'commit' )
109
+ return mockGit ( 'console.error("commit yourself"); process.exit(128);' , 'commit' )
110
110
. then ( function ( unmock ) {
111
111
writePackageJson ( '1.0.0' )
112
112
You can’t perform that action at this time.
0 commit comments