We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 842d686 commit a10b8e8Copy full SHA for a10b8e8
__tests__/action.test.js
@@ -31,4 +31,22 @@ describe('action', () => {
31
`Input required and not supplied: ${input}`
32
)
33
})
34
+
35
+ it('should throw an error if the available report is not valid', async () => {
36
+ getInputMock.mockImplementation(name => {
37
+ if (name === 'report-tool') {
38
+ return 'invalid'
39
+ }
40
41
+ return ''
42
+ })
43
+ await main.run()
44
45
+ expect(runMock).toHaveReturned()
46
+ expect(setFailedMock).toHaveBeenNthCalledWith(
47
+ 'The report-tool is not valid, please use: scorecard-visualizer, deps.dev'
48
+ )
49
50
51
+ it.todo("should't throw an error if the available report is valid")
52
0 commit comments