(result: any, expected: unknown)
| 311 | }; |
| 312 | |
| 313 | const printResult = (result: any, expected: unknown) => |
| 314 | result.type === 'throw' |
| 315 | ? 'function call threw an error' |
| 316 | : result.type === 'incomplete' |
| 317 | ? 'function call has not returned yet' |
| 318 | : isEqualValue(expected, result.value) |
| 319 | ? printCommon(result.value) |
| 320 | : printReceived(result.value); |
| 321 | |
| 322 | type IndexedResult = [number, any]; |
| 323 |
no test coverage detected