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