@@ -47,7 +47,7 @@ describe('action', () => {
4747 await main . run ( )
4848 expect ( action ) . toHaveReturned ( )
4949 expect ( action ) . not . toThrow ( )
50- expect ( setFailed ) . not . toBeCalled ( )
50+ expect ( setFailed ) . not . toHaveBeenCalled ( )
5151 expect ( getInput ) . toHaveBeenCalledWith ( OptionName . VERSION )
5252 expect ( getInput ) . toHaveBeenCalledWith ( OptionName . OS )
5353 expect ( getInput ) . toHaveBeenCalledWith ( OptionName . ARCH )
@@ -68,7 +68,7 @@ describe('action', () => {
6868 await main . run ( )
6969 expect ( action ) . toHaveReturned ( )
7070 expect ( action ) . not . toThrow ( )
71- expect ( setFailed ) . not . toBeCalled ( )
71+ expect ( setFailed ) . not . toHaveBeenCalled ( )
7272 expect ( setOutput ) . toHaveBeenCalledWith (
7373 ActionOutputName . PATH ,
7474 expect . anything ( )
@@ -88,7 +88,7 @@ describe('action', () => {
8888 await main . run ( )
8989 }
9090 expect ( runner ) . not . toThrow ( )
91- expect ( setFailed ) . toBeCalled ( )
91+ expect ( setFailed ) . toHaveBeenCalled ( )
9292 } )
9393
9494 // it('should support downloading from a custom url', async () => {
@@ -145,7 +145,7 @@ describe('action', () => {
145145 } )
146146 expect ( action ) . toHaveReturned ( )
147147 expect ( action ) . not . toThrow ( )
148- expect ( setFailed ) . not . toBeCalled ( )
148+ expect ( setFailed ) . not . toHaveBeenCalled ( )
149149 expect ( setOutput ) . toHaveBeenCalledWith (
150150 ActionOutputName . PATH ,
151151 expect . anything ( )
@@ -164,7 +164,7 @@ describe('action', () => {
164164 } )
165165 expect ( action ) . toHaveReturned ( )
166166 expect ( action ) . not . toThrow ( )
167- expect ( setFailed ) . not . toBeCalled ( )
167+ expect ( setFailed ) . not . toHaveBeenCalled ( )
168168 expect ( setOutput ) . toHaveBeenCalledWith (
169169 ActionOutputName . PATH ,
170170 expect . anything ( )
@@ -187,7 +187,7 @@ describe('action', () => {
187187 )
188188 if ( err ) throw err
189189 }
190- expect ( t ) . toThrowError ( )
190+ expect ( t ) . toThrow ( )
191191 getInput . mockImplementation ( ( name : string ) : string => {
192192 switch ( name ) {
193193 case OptionName . OS :
@@ -200,7 +200,7 @@ describe('action', () => {
200200 } )
201201
202202 await main . run ( { os, arch } )
203- expect ( setFailed ) . toBeCalled ( )
203+ expect ( setFailed ) . toHaveBeenCalled ( )
204204 } )
205205 }
206206 const itShouldAllow = ( os : ElideOS , arch : ElideArch ) => {
@@ -215,7 +215,7 @@ describe('action', () => {
215215 )
216216 if ( err ) throw err
217217 }
218- expect ( t ) . not . toThrowError ( )
218+ expect ( t ) . not . toThrow ( )
219219 } )
220220 }
221221
0 commit comments