4
4
spyOnStdout ,
5
5
stdoutCalledWith ,
6
6
testChildProcess ,
7
- spyOnExec ,
7
+ spyOnSpawn ,
8
8
execCalledWith ,
9
9
testFs ,
10
10
setChildProcessParams ,
@@ -58,7 +58,7 @@ describe('execute', () => {
58
58
} ) ;
59
59
60
60
it ( 'should do nothing' , async ( ) => {
61
- const mockExec = spyOnExec ( ) ;
61
+ const mockExec = spyOnSpawn ( ) ;
62
62
const mockStdout = spyOnStdout ( ) ;
63
63
process . argv = [
64
64
'node' ,
@@ -78,7 +78,7 @@ describe('execute', () => {
78
78
} ) ;
79
79
80
80
it ( 'should push 1' , async ( ) => {
81
- const mockExec = spyOnExec ( ) ;
81
+ const mockExec = spyOnSpawn ( ) ;
82
82
const mockStdout = spyOnStdout ( ) ;
83
83
const cwd = process . cwd ( ) ;
84
84
process . argv = [
@@ -224,7 +224,7 @@ describe('execute', () => {
224
224
} ) ;
225
225
226
226
it ( 'should push 2' , async ( ) => {
227
- const mockExec = spyOnExec ( ) ;
227
+ const mockExec = spyOnSpawn ( ) ;
228
228
const mockStdout = spyOnStdout ( ) ;
229
229
const cwd = process . cwd ( ) ;
230
230
process . argv = [
@@ -360,7 +360,7 @@ describe('execute', () => {
360
360
} ) ;
361
361
362
362
it ( 'should dry run' , async ( ) => {
363
- const mockExec = spyOnExec ( ) ;
363
+ const mockExec = spyOnSpawn ( ) ;
364
364
const mockStdout = spyOnStdout ( ) ;
365
365
const cwd = process . cwd ( ) ;
366
366
process . argv = [
0 commit comments