feat: productionize paid modes and PvP capture

This commit is contained in:
jwinterm
2026-07-21 20:41:27 -04:00
parent 8fb284f8ed
commit 89398335c7
230 changed files with 31755 additions and 2777 deletions
+20
View File
@@ -0,0 +1,20 @@
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}×/);
});
});