We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d915b9 commit bb32597Copy full SHA for bb32597
__tests__/main.test.ts
@@ -149,9 +149,11 @@ describe('action', () => {
149
}
150
})
151
152
- fetchMock.mockResponseOnce(JSON.stringify({}), { status: 400 })
+ fetchMock.mockResponseOnce('Something went wrong', { status: 400 })
153
await main.run()
154
- expect(setFailedMock).toHaveBeenCalled()
+ expect(setFailedMock).toHaveBeenCalledWith(
155
+ 'HTTP Error: Something went wrong'
156
+ )
157
158
it('Should create a new plugin if not found', async () => {
159
getInputMock.mockImplementation(name => {
0 commit comments