(name: string, value: any, expectedValue: any)
| 35 | } |
| 36 | |
| 37 | export function Equals(name: string, value: any, expectedValue: any) { |
| 38 | if (value !== expectedValue) { |
| 39 | let msg = `[${name}] expected: ${JSON.stringify(expectedValue, null, 4)}, received: ${JSON.stringify(value, null, 4)}`; |
| 40 | console.log(chalk.redBright(`${msg}`)); |
| 41 | throw new Error(msg) |
| 42 | } |
| 43 | else { |
| 44 | console.log(chalk.green(`${name}`)); |
| 45 | } |
| 46 | } |
no outgoing calls
no test coverage detected