(error: any)
| 20 | } |
| 21 | |
| 22 | function errorToString(error: any) { |
| 23 | const logger = new MockConsole(); |
| 24 | const errorHandler = new ErrorHandler(); |
| 25 | (errorHandler as any)._console = logger as any; |
| 26 | errorHandler.handleError(error); |
| 27 | return logger.res.map((line) => line.map((x) => `${x}`).join('#')).join('\n'); |
| 28 | } |
| 29 | |
| 30 | describe('ErrorHandler', () => { |
| 31 | it('should output exception', () => { |
no test coverage detected
searching dependent graphs…