(condition: boolean, msg: string)
| 24 | let failed = 0; |
| 25 | |
| 26 | function assert(condition: boolean, msg: string) { |
| 27 | if (condition) { |
| 28 | console.log(` ✓ ${msg}`); |
| 29 | passed++; |
| 30 | } else { |
| 31 | console.error(` ✗ FAIL: ${msg}`); |
| 32 | failed++; |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | function sleep(ms: number): Promise<void> { |
| 37 | return new Promise((resolve) => setTimeout(resolve, ms)); |
no outgoing calls
no test coverage detected