landing-family-stress.test.mjs
sha256:700fafdd1afa490919f9515d660ca6e75456bcd5bb67513abcd8757a634c01f6
docs: record AIP-b SD-21 land (KN #308)
Human
9 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 copy (stress)', () => { |
| 11 | it('keeps family invariants across repeated full-file reads', () => { |
| 12 | for (let i = 0; i < 250; i += 1) { |
| 13 | const html = readFileSync(indexPath, 'utf8'); |
| 14 | assert.equal(/agentception/i.test(html), false); |
| 15 | assert.equal(/parentier/i.test(html), false); |
| 16 | assert.ok(html.includes('https://ourware.org')); |
| 17 | assert.ok(html.includes('https://x.com/ourware')); |
| 18 | assert.ok(html.includes('scool.ing')); |
| 19 | assert.ok(html.includes('Overseer Kit')); |
| 20 | assert.ok(html.includes('class="hero-value-fold-triangle"')); |
| 21 | const triStart = html.indexOf('class="hero-value-fold-triangle"'); |
| 22 | const triangle = html.slice(triStart, triStart + 280); |
| 23 | assert.equal((triangle.match(/<span><\/span>/g) || []).length, 3); |
| 24 | } |
| 25 | }); |
| 26 | }); |
File History
1 commit
sha256:700fafdd1afa490919f9515d660ca6e75456bcd5bb67513abcd8757a634c01f6
docs: record AIP-b SD-21 land (KN #308)
Human
9 days ago