web/website/tests/corrino-bank-navigation.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

12 lines
656 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/bank-dashboard.mjs',import.meta.url),'utf8');
test('bank dashboard retains Corrino Group link without duplicating its page',()=>{
assert.match(source,/\['Corrino Group','https:\/\/www\.dunerealms\.com\/corrino-group\.html'\]/);
assert.match(source,/\['My accounts','personal-bank'\]/);
assert.match(source,/\['Loan Centre','loan-centre'\]/);
});
test('Imperial Postbank continues to identify Corrino Group',()=>{
assert.match(source,/Imperial Postbank · Part of Corrino Group/);
});