(error: Error)
| 660 | describe('shouldThrowError', () => { |
| 661 | it('should return the result of executing throwOnError if throwOnError parameter is a function', () => { |
| 662 | const throwOnError = (error: Error) => error.message === 'test error' |
| 663 | expect(shouldThrowError(throwOnError, [new Error('test error')])).toBe( |
| 664 | true, |
| 665 | ) |