web/website/tests/cp-v2-citizens-modules.test.mjs
Dev 6deb4a2e7d DuneRealms V2 clean baseline
Owner-authorised history reset; current source tree preserved exactly.
2026-11-13 00:05:14 +01:00

6 lines
655 B
JavaScript

import test from 'node:test';import assert from 'node:assert/strict';import {readFileSync} from 'node:fs';
const source=readFileSync(new URL('../control-panel/public/cp-v2/citizens-registry.mjs',import.meta.url),'utf8');
test('Citizens Registry has separate illustrated modules and real API controls',()=>{
for(const text of ['Citizen Directory','Citizen Profile','Account Integrations','Register Citizen','moduleCard(','citizen-sort','function selectCitizen','view=accounts&page=','await navigator.clipboard.writeText'])assert.ok(source.includes(text),text);
assert.match(source,/submit.disabled=true/);assert.doesNotMatch(source,/innerHTML\s*=/);
});