// A missing detail renderer, unsafe labels, zero-score hiding, or cross-version // reuse must fail these tests. Existing DOM/Hub startup is isolated by the same // harness as smoke_board; assertions exercise production HTML rendering. import fs from 'node:fs'; import assert from 'node:assert/strict'; const here=new URL('.',import.meta.url); const smoke=fs.readFileSync(new URL('smoke_board.mjs',here),'utf8'); const setup=smoke.slice(smoke.indexOf('const el ='),smoke.indexOf('let threw =')); new Function(setup)(); const script=fs.readFileSync(new URL('index.html',here),'utf8').match(/'; result=ctx.details(hostile,'v12');assert.ok(!result.includes(''));assert.match(result,/<img/); console.log('PASS: zero/full scores, weighted groups, unavailable/version boundaries and escaped labels'); process.exit(0);