(condition: boolean, msg: string)
| 135 | let failed = 0; |
| 136 | |
| 137 | function assert(condition: boolean, msg: string) { |
| 138 | if (condition) { |
| 139 | console.log(` ✓ ${msg}`); |
| 140 | passed++; |
| 141 | } else { |
| 142 | console.error(` ✗ FAIL: ${msg}`); |
| 143 | failed++; |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | // Start mock BlockRun API |
| 148 | const mockApi = await startMockServer(); |