* Test helper to check if output does NOT contain unexpected content
(content, unexpected, testName)
| 37 | * Test helper to check if output does NOT contain unexpected content |
| 38 | */ |
| 39 | function assertNotContains(content, unexpected, testName) { |
| 40 | if (content.includes(unexpected)) { |
| 41 | console.error(`❌ FAIL: ${testName}`); |
| 42 | console.error(` Expected NOT to find: "${unexpected}"`); |
| 43 | return false; |
| 44 | } |
| 45 | console.log(`✓ PASS: ${testName}`); |
| 46 | return true; |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Test helper to count occurrences of a pattern |
no test coverage detected