(
returnedWith: string,
)
| 1069 | } |
| 1070 | |
| 1071 | function isToHaveLast( |
| 1072 | returnedWith: string, |
| 1073 | ): returnedWith is 'toHaveLastReturnedWith' { |
| 1074 | return returnedWith === 'toHaveLastReturnedWith'; |
| 1075 | } |
| 1076 | test('works only on spies or jest.fn', () => { |
| 1077 | const fn = function fn() {}; |
| 1078 |