Skip to content

Commit 7427667

Browse files
committed
Fixes tests
1 parent 42b6247 commit 7427667

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

__tests__/git.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ describe('git', () => {
316316
await deploy(action)
317317

318318
// Includes the call to generateBranch
319-
expect(execute).toBeCalledTimes(12)
319+
expect(execute).toBeCalledTimes(13)
320320
})
321321

322322
it('should execute commands with single commit toggled', async () => {
@@ -334,7 +334,7 @@ describe('git', () => {
334334
await deploy(action)
335335

336336
// Includes the call to generateBranch
337-
expect(execute).toBeCalledTimes(18)
337+
expect(execute).toBeCalledTimes(19)
338338
})
339339

340340
it('should execute commands with clean options, ommits sha commit message', async () => {
@@ -354,7 +354,7 @@ describe('git', () => {
354354
await deploy(action)
355355

356356
// Includes the call to generateBranch
357-
expect(execute).toBeCalledTimes(12)
357+
expect(execute).toBeCalledTimes(13)
358358
})
359359

360360
it('should execute commands with clean options stored as an array instead', async () => {
@@ -373,7 +373,7 @@ describe('git', () => {
373373
await deploy(action)
374374

375375
// Includes the call to generateBranch
376-
expect(execute).toBeCalledTimes(12)
376+
expect(execute).toBeCalledTimes(13)
377377
})
378378

379379
it('should gracefully handle incorrectly formatted clean exclude items', async () => {
@@ -391,7 +391,7 @@ describe('git', () => {
391391

392392
await deploy(action)
393393

394-
expect(execute).toBeCalledTimes(12)
394+
expect(execute).toBeCalledTimes(13)
395395
})
396396

397397
it('should stop early if there is nothing to commit', async () => {
@@ -407,7 +407,7 @@ describe('git', () => {
407407
})
408408

409409
await deploy(action)
410-
expect(execute).toBeCalledTimes(13)
410+
expect(execute).toBeCalledTimes(14)
411411
})
412412

413413
it('should throw an error if one of the required parameters is not available', async () => {
@@ -427,7 +427,7 @@ describe('git', () => {
427427
try {
428428
await deploy(action)
429429
} catch (e) {
430-
expect(execute).toBeCalledTimes(1)
430+
expect(execute).toBeCalledTimes(2)
431431
expect(e.message).toMatch(
432432
'The deploy step encountered an error: No deployment token/method was provided. You must provide the action with either a Personal Access Token or the GitHub Token secret in order to deploy. If you wish to use an ssh deploy token then you must set SSH to true. ❌'
433433
)

__tests__/main.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('main', () => {
4242
debug: true
4343
})
4444
await run(action)
45-
expect(execute).toBeCalledTimes(19)
45+
expect(execute).toBeCalledTimes(20)
4646
})
4747

4848
it('should throw if an error is encountered', async () => {

0 commit comments

Comments
 (0)