Repository navigation
Expand file tree
/
Copy pathsmoke-check.js
More file actions
46 lines (41 loc) · 1.54 KB
/
Copy pathsmoke-check.js
File metadata and controls
46 lines (41 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
'use strict';
const assert = require('node:assert/strict');
const { readFileSync, statSync } = require('node:fs');
const { join } = require('node:path');
const root = __dirname;
const text = (file) => readFileSync(join(root, file), 'utf8');
const required = [
'index.html',
'support.js',
'image-slot.js',
'assets/surus-mark-blue.png',
'assets/surus-mark-white.png',
'ds/styles.css',
'ds/tokens/aliases.css',
'ds/tokens/base.css',
'ds/tokens/fig-tokens.css',
'ds/tokens/fonts.css',
'ds/tokens/typography.css',
];
for (const file of required) assert.ok(statSync(join(root, file)).isFile(), `${file} is missing`);
const index = text('index.html');
// Verbatim export of "Profile Page + Overview.dc.html" from
// "Alignment Asset Site - Ready for Dev.zip" (2026-08-28).
assert.equal(statSync(join(root, 'index.html')).size, 379567, 'index.html must remain the verbatim export');
assert.match(index, /src="\.\/support\.js"/);
assert.match(index, /src="\.\/image-slot\.js"/);
assert.match(index, /href="ds\/styles\.css"/);
for (const evidence of [
'Demo controls',
'PLAA is exposure to tech', // new overview hero
'PLAA balance', // hero consolidation (changelog §2)
'Infra rewards', // second PLAA stream (§1)
'Infra Member', // status pill gate (§1)
'Points and PLAA balance over time', // relabelled chart (§6)
'Contribution History',
'Community Kudos',
]) {
assert.ok(index.includes(evidence), `design evidence missing: ${evidence}`);
}
assert.match(text('support.js'), /fetch\(location\.href\)/);
console.log('Smoke check passed.');