Skip to content

Commit 1aaee7e

Browse files
fix: broken tests
1 parent 4b9d308 commit 1aaee7e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

__tests__/index.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
spyOnStdout,
55
stdoutCalledWith,
66
testChildProcess,
7-
spyOnExec,
7+
spyOnSpawn,
88
execCalledWith,
99
testFs,
1010
setChildProcessParams,
@@ -58,7 +58,7 @@ describe('execute', () => {
5858
});
5959

6060
it('should do nothing', async() => {
61-
const mockExec = spyOnExec();
61+
const mockExec = spyOnSpawn();
6262
const mockStdout = spyOnStdout();
6363
process.argv = [
6464
'node',
@@ -78,7 +78,7 @@ describe('execute', () => {
7878
});
7979

8080
it('should push 1', async() => {
81-
const mockExec = spyOnExec();
81+
const mockExec = spyOnSpawn();
8282
const mockStdout = spyOnStdout();
8383
const cwd = process.cwd();
8484
process.argv = [
@@ -224,7 +224,7 @@ describe('execute', () => {
224224
});
225225

226226
it('should push 2', async() => {
227-
const mockExec = spyOnExec();
227+
const mockExec = spyOnSpawn();
228228
const mockStdout = spyOnStdout();
229229
const cwd = process.cwd();
230230
process.argv = [
@@ -360,7 +360,7 @@ describe('execute', () => {
360360
});
361361

362362
it('should dry run', async() => {
363-
const mockExec = spyOnExec();
363+
const mockExec = spyOnSpawn();
364364
const mockStdout = spyOnStdout();
365365
const cwd = process.cwd();
366366
process.argv = [

0 commit comments

Comments
 (0)