test: Fixes test case

This commit is contained in:
James Ives 2022-07-17 09:49:43 -04:00
parent f08f40f621
commit 73a6bacee1
2 changed files with 3 additions and 2 deletions

View File

@ -463,11 +463,11 @@ describe('git', () => {
name: 'asd', name: 'asd',
email: 'as@cat' email: 'as@cat'
}, },
isTest: TestFlag.NONE isTest: TestFlag.HAS_CHANGED_FILES
}) })
const response = await deploy(action) 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) expect(response).toBe(Status.SUCCESS)
}) })
}) })

View File

@ -317,6 +317,7 @@ export async function deploy(action: ActionInterface): Promise<Status> {
info(`Changes committed to the ${action.branch} branch… 📦`) info(`Changes committed to the ${action.branch} branch… 📦`)
if (action.tag) { if (action.tag) {
console.log('ADDING TAG!!!')
info(`Adding '${action.tag}' tag to the commit…`) info(`Adding '${action.tag}' tag to the commit…`)
await execute( await execute(
`git tag ${action.tag}`, `git tag ${action.tag}`,