(error: Error)
| 721 | describe('shouldThrowError', () => { |
| 722 | it('should return the result of executing throwOnError if throwOnError parameter is a function', () => { |
| 723 | const throwOnError = (error: Error) => error.message === 'test error' |
| 724 | expect(shouldThrowError(throwOnError, [new Error('test error')])).toBe( |
| 725 | true, |
| 726 | ) |