mirror of
https://github.com/actions/deploy-pages.git
synced 2026-03-29 17:34:53 +00:00
add check when no deployment is found
This commit is contained in:
@@ -300,6 +300,13 @@ describe('Deployment', () => {
|
||||
createDeploymentScope.done()
|
||||
deploymentStatusScope.done()
|
||||
})
|
||||
|
||||
it('fails check when no deployment is found', async () => {
|
||||
process.env.GITHUB_SHA = 'valid-build-version'
|
||||
const deployment = new Deployment()
|
||||
await deployment.check()
|
||||
expect(core.setFailed).toBeCalledWith('Deployment not found.')
|
||||
})
|
||||
})
|
||||
|
||||
describe('#cancel', () => {
|
||||
|
||||
Reference in New Issue
Block a user