mirror of
https://github.com/actions/container-toolkit-action.git
synced 2025-12-10 11:56:49 +00:00
Wrap test exception
This commit is contained in:
@@ -57,12 +57,16 @@ describe('action', () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
await main.run()
|
try {
|
||||||
|
await main.run()
|
||||||
|
|
||||||
expect(runMock).toHaveReturned()
|
expect(runMock).toHaveReturned()
|
||||||
expect(setFailedMock).toHaveBeenNthCalledWith(
|
expect(setFailedMock).toHaveBeenNthCalledWith(
|
||||||
1,
|
1,
|
||||||
'milliseconds not a number'
|
'milliseconds not a number'
|
||||||
)
|
)
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user