Skip to content

Commit

Permalink
test: Fixes test case
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Jul 17, 2022
1 parent f08f40f commit 73a6bac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __tests__/git.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,11 +463,11 @@ describe('git', () => {
name: 'asd',
email: 'as@cat'
},
isTest: TestFlag.NONE
isTest: TestFlag.HAS_CHANGED_FILES
})

const response = await deploy(action)
expect(execute).toBeCalledTimes(13) // normally 11 runs, +2 of the tag
expect(execute).toBeCalledTimes(16)
expect(response).toBe(Status.SUCCESS)
})
})
Expand Down
1 change: 1 addition & 0 deletions src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ export async function deploy(action: ActionInterface): Promise<Status> {
info(`Changes committed to the ${action.branch} branch… 📦`)

if (action.tag) {
console.log('ADDING TAG!!!')
info(`Adding '${action.tag}' tag to the commit…`)
await execute(
`git tag ${action.tag}`,
Expand Down

0 comments on commit 73a6bac

Please sign in to comment.