* Test helper to check if output contains expected content
(content, expected, testName)
| 25 | * Test helper to check if output contains expected content |
| 26 | */ |
| 27 | function assertContains(content, expected, testName) { |
| 28 | if (!content.includes(expected)) { |
| 29 | console.error(`❌ FAIL: ${testName}`); |
| 30 | console.error(` Expected to find: "${expected}"`); |
| 31 | return false; |
| 32 | } |
| 33 | console.log(`✓ PASS: ${testName}`); |
| 34 | return true; |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * Test helper to check if output does NOT contain unexpected content |
no test coverage detected