Skip to content

Commit dd28e19

Browse files
committed
test: fix issue with unit tests
1 parent 31fa027 commit dd28e19

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

__tests__/git.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('git', () => {
5454
})
5555

5656
await init(action)
57-
expect(execute).toHaveBeenCalledTimes(7)
57+
expect(execute).toHaveBeenCalledTimes(8)
5858
})
5959

6060
it('should catch when a function throws an error', async () => {
@@ -101,7 +101,7 @@ describe('git', () => {
101101
})
102102

103103
await init(action)
104-
expect(execute).toHaveBeenCalledTimes(7)
104+
expect(execute).toHaveBeenCalledTimes(8)
105105
})
106106

107107
it('should not unset git config if a user is using ssh', async () => {
@@ -123,7 +123,7 @@ describe('git', () => {
123123
})
124124

125125
await init(action)
126-
expect(execute).toHaveBeenCalledTimes(6)
126+
expect(execute).toHaveBeenCalledTimes(7)
127127

128128
process.env.CI = undefined
129129
})
@@ -144,7 +144,7 @@ describe('git', () => {
144144
})
145145

146146
await init(action)
147-
expect(execute).toHaveBeenCalledTimes(7)
147+
expect(execute).toHaveBeenCalledTimes(8)
148148
})
149149
})
150150

__tests__/main.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe('main', () => {
5353
debug: true
5454
})
5555
await run(action)
56-
expect(execute).toHaveBeenCalledTimes(18)
56+
expect(execute).toHaveBeenCalledTimes(19)
5757
expect(rmRF).toHaveBeenCalledTimes(1)
5858
expect(exportVariable).toHaveBeenCalledTimes(1)
5959
})
@@ -73,7 +73,7 @@ describe('main', () => {
7373
isTest: TestFlag.HAS_CHANGED_FILES
7474
})
7575
await run(action)
76-
expect(execute).toHaveBeenCalledTimes(21)
76+
expect(execute).toHaveBeenCalledTimes(22)
7777
expect(rmRF).toHaveBeenCalledTimes(1)
7878
expect(exportVariable).toHaveBeenCalledTimes(1)
7979
})

0 commit comments

Comments
 (0)