// npm run test:live: the same A1 check against the real sites (needs the network; not part of npm test).
import test from 'node:test';
import assert from 'node:assert/strict';
import { validateSite } from '../src/index.js';
test('A1 live: lax.kognai.ai and www.kognai.ai pass with a score of 90 or more', { skip: !process.env.AIAX_LIVE }, async () => {
for (const h of ['https://lax.kognai.ai', 'https://www.kognai.ai']) {
const r = await validateSite(h);
assert.equal(r.ok, true, JSON.stringify(r.errors)); assert.ok(r.score >= 90);
}
});
agentgate-source: code mirror on Cloudflare Pages. All repos