From dd28e1948504bc8e347b6bf8564bb3a7707a392c Mon Sep 17 00:00:00 2001 From: James Ives Date: Fri, 27 Sep 2024 11:09:17 -0400 Subject: [PATCH] test: fix issue with unit tests --- __tests__/git.test.ts | 8 ++++---- __tests__/main.test.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/__tests__/git.test.ts b/__tests__/git.test.ts index ddb0b65d2..f1c7bc5fa 100644 --- a/__tests__/git.test.ts +++ b/__tests__/git.test.ts @@ -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 () => { @@ -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 () => { @@ -123,7 +123,7 @@ describe('git', () => { }) await init(action) - expect(execute).toHaveBeenCalledTimes(6) + expect(execute).toHaveBeenCalledTimes(7) process.env.CI = undefined }) @@ -144,7 +144,7 @@ describe('git', () => { }) await init(action) - expect(execute).toHaveBeenCalledTimes(7) + expect(execute).toHaveBeenCalledTimes(8) }) }) diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index f0ec58053..3d33495aa 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -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) }) @@ -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) })