(condition: boolean, msg: string)
| 84 | let failed = 0; |
| 85 | |
| 86 | function assert(condition: boolean, msg: string) { |
| 87 | if (condition) { |
| 88 | console.log(` ✓ ${msg}`); |
| 89 | passed++; |
| 90 | } else { |
| 91 | console.error(` ✗ FAIL: ${msg}`); |
| 92 | failed++; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | // Start mock BlockRun API |
| 97 | const mockApi = await startMockServer(); |