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