mirror of
https://github.com/Such-Software/wownerogue.git
synced 2026-10-18 06:41:27 +02:00
A browser-based roguelike synchronized with crypto block timing. A run is a race against the next block: reach the exit before the block lands, or the house wins. The same codebase runs the solo dungeon, the social Tavern, and operator-selected PvP and race rulesets, with separate free and paid leaderboards. Self-hostable under the MIT License. See README.md to run it, docs/ARCHITECTURE.md for the design, and docs/DEPLOY.md to operate an instance.
21 lines
768 B
JavaScript
21 lines
768 B
JavaScript
const fs = require('fs');
|
||
const path = require('path');
|
||
|
||
describe('browser payout disclosures', () => {
|
||
test('renders server-computed outcomes and never recreates multiplier amounts', () => {
|
||
const paymentUi = fs.readFileSync(
|
||
path.join(__dirname, '../html/js/ui/paymentUI.js'),
|
||
'utf8'
|
||
);
|
||
const help = fs.readFileSync(
|
||
path.join(__dirname, '../html/js/ui/helpModal.js'),
|
||
'utf8'
|
||
);
|
||
|
||
expect(paymentUi).toContain('this.config?.payoutOutcomes?.[mode]');
|
||
expect(paymentUi).toContain('configured cap applied');
|
||
expect(paymentUi).not.toMatch(/parseFloat\([^\n]+\)\s*\*\s*[^\n]*multiplier/i);
|
||
expect(help).not.toMatch(/Escape pays[\s\S]{0,80}×/);
|
||
});
|
||
});
|