Skip to content

Commit

Permalink
test: fix issue with unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Sep 27, 2024
1 parent 31fa027 commit dd28e19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions __tests__/git.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('git', () => {
})

await init(action)
expect(execute).toHaveBeenCalledTimes(7)
expect(execute).toHaveBeenCalledTimes(8)
})

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

await init(action)
expect(execute).toHaveBeenCalledTimes(7)
expect(execute).toHaveBeenCalledTimes(8)
})

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

await init(action)
expect(execute).toHaveBeenCalledTimes(6)
expect(execute).toHaveBeenCalledTimes(7)

process.env.CI = undefined
})
Expand All @@ -144,7 +144,7 @@ describe('git', () => {
})

await init(action)
expect(execute).toHaveBeenCalledTimes(7)
expect(execute).toHaveBeenCalledTimes(8)
})
})

Expand Down
4 changes: 2 additions & 2 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('main', () => {
debug: true
})
await run(action)
expect(execute).toHaveBeenCalledTimes(18)
expect(execute).toHaveBeenCalledTimes(19)
expect(rmRF).toHaveBeenCalledTimes(1)
expect(exportVariable).toHaveBeenCalledTimes(1)
})
Expand All @@ -73,7 +73,7 @@ describe('main', () => {
isTest: TestFlag.HAS_CHANGED_FILES
})
await run(action)
expect(execute).toHaveBeenCalledTimes(21)
expect(execute).toHaveBeenCalledTimes(22)
expect(rmRF).toHaveBeenCalledTimes(1)
expect(exportVariable).toHaveBeenCalledTimes(1)
})
Expand Down

0 comments on commit dd28e19

Please sign in to comment.