(condition: boolean, msg: string)
| 20 | let failed = 0; |
| 21 | |
| 22 | function assert(condition: boolean, msg: string) { |
| 23 | if (condition) { |
| 24 | console.log(` ✓ ${msg}`); |
| 25 | passed++; |
| 26 | } else { |
| 27 | console.error(` ✗ FAIL: ${msg}`); |
| 28 | failed++; |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | // ─── Part 1: getProxyPort() ─── |
| 33 |