Fix tests

This commit is contained in:
Nick Cipollo
2019-12-13 15:52:52 -05:00
parent 734853d8c8
commit 5ce722314c
3 changed files with 36 additions and 27 deletions

View File

@@ -43,16 +43,12 @@ describe("Action", () => {
it('creates release if no release exists to update', async () => {
const action = createAction(true, true)
const error = {
errors: [
{
code: 'missing'
}
]
status: 404
}
getMock.mockRejectedValue(error)
await action.perform()
expect(createMock).toBeCalledWith(tag, body, commit, draft, name)
expect(uploadMock).toBeCalledWith(artifacts, url)
})