landing-family-performance.test.mjs
25 lines 895 B
Raw
sha256:700fafdd1afa490919f9515d660ca6e75456bcd5bb67513abcd8757a634c01f6 docs: record AIP-b SD-21 land (KN #308) Human 10 days ago
1 import { describe, it } from 'node:test';
2 import assert from 'node:assert';
3 import { readFileSync } from 'node:fs';
4 import { fileURLToPath } from 'node:url';
5 import { dirname, join } from 'node:path';
6
7 const root = join(dirname(fileURLToPath(import.meta.url)), '..');
8 const indexPath = join(root, 'web', 'index.html');
9
10 describe('landing family scan (performance)', () => {
11 it('reads and scans family markers in under 50ms', () => {
12 const t0 = performance.now();
13 const html = readFileSync(indexPath, 'utf8');
14 const ok =
15 html.includes('Ourware') &&
16 html.includes('https://ourware.org') &&
17 html.includes('scool.ing') &&
18 html.includes('Overseer Kit') &&
19 !/agentception/i.test(html) &&
20 !/parentier/i.test(html);
21 const elapsed = performance.now() - t0;
22 assert.equal(ok, true);
23 assert.ok(elapsed < 50, `scan took ${elapsed}ms`);
24 });
25 });
File History 1 commit
sha256:700fafdd1afa490919f9515d660ca6e75456bcd5bb67513abcd8757a634c01f6 docs: record AIP-b SD-21 land (KN #308) Human 10 days ago