landing-family-unit.test.mjs
32 lines 1.2 KB
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 indexHtml = readFileSync(join(root, 'web', 'index.html'), 'utf8');
9
10 describe('landing family copy (unit)', () => {
11 it('does not mention AgentCeption on the public landing page', () => {
12 assert.equal(/agentception/i.test(indexHtml), false);
13 });
14
15 it('names Ourware, scool.ing, theBRAIN, and Overseer Kit', () => {
16 assert.match(indexHtml, /Ourware/);
17 assert.match(indexHtml, /scool\.ing/);
18 assert.match(indexHtml, /theBRAIN/);
19 assert.match(indexHtml, /Overseer Kit/);
20 });
21
22 it('does not retain Parentier branding on the public landing page', () => {
23 assert.equal(/parentier/i.test(indexHtml), false);
24 });
25
26 it('avoids Parent Here, parent company, schooling, and school.ing labels', () => {
27 assert.equal(/parent here/i.test(indexHtml), false);
28 assert.equal(/parent company/i.test(indexHtml), false);
29 assert.equal(/\bschooling\b/i.test(indexHtml), false);
30 assert.equal(/school\.ing/i.test(indexHtml), false);
31 });
32 });
File History 1 commit
sha256:700fafdd1afa490919f9515d660ca6e75456bcd5bb67513abcd8757a634c01f6 docs: record AIP-b SD-21 land (KN #308) Human 10 days ago