Merge the supplied inventory/exchange package into the latest DuneRealms source. Keep community-reward receipts, verified UUID linking, native menus and current website artwork, Dutch naming and account controls. Wire the inventory/sales adapters into the real CP session and verified-link schema, with isolated reads and honest unconfigured states. Preserve lobby/ender separation and Core-owned atomic exchange checkpoints. Validation: website build and 56 tests; 12 inventory/market adapter tests; Core/Essentials and NPC/Terrain/Lobby builds and tests; local browser inspection of the themed inventory, mannequin and History of sales with fictional fixtures. Paper 1.21.8 source only: live 1.21.4 binaries and databases are unchanged.
23 lines
1.3 KiB
JavaScript
23 lines
1.3 KiB
JavaScript
import test from 'node:test';
|
|
import assert from 'node:assert/strict';
|
|
import {existsSync,readFileSync} from 'node:fs';
|
|
const web=new URL('../web/',import.meta.url);
|
|
test('All Vaerkring denominations have full artwork, downloadable GUI sizes and the imperial seal',()=>{
|
|
const chapters=JSON.parse(readFileSync(new URL('manual-data.json',web),'utf8'));
|
|
const chapter=chapters.find(c=>c.id==='solaris-spice-sales-and-guild-travel');
|
|
assert.match(chapter.body,/VAERKRING RESERVE/);
|
|
for(const value of [1,5,100,1000,5000]){
|
|
for(const file of [`dunemark-${value}.webp`,`dunemark-${value}-icon-64.png`,`dunemark-${value}-icon-128.png`])assert.ok(existsSync(new URL('assets/'+file,web)),file);
|
|
assert.match(chapter.body,new RegExp('id="dunemark-'+value+'"'));
|
|
}
|
|
assert.ok(existsSync(new URL('assets/imperial-seal.png',web)));
|
|
});
|
|
|
|
test('The zero Leto II tribute is explicitly a separate non-game design',()=>{
|
|
const chapters=JSON.parse(readFileSync(new URL('manual-data.json',web),'utf8'));
|
|
const text=chapters.find(c=>c.id==='solaris-spice-sales-and-guild-travel').body;
|
|
assert.match(text,/id="dunemark-0"/);
|
|
assert.match(text,/Not an in-game denomination, item, reward or redeemable note/);
|
|
assert.ok(existsSync(new URL('assets/dunemark-0-commemorative.webp',web)));
|
|
assert.doesNotMatch(text,/dunemark-0-icon/);
|
|
});
|

Staff