The China licence follows quick lead times: about 5 days instead of 45
Change Freeze and Sandbox deliver everything in a tenth of the time, but the licence still took 45 days and the button said so. It now waits leadDays(45), and the button shows that number.
This commit is contained in:
parent
1692217549
commit
4bb5e07c28
9 changed files with 19 additions and 8 deletions
|
|
@ -123,3 +123,14 @@ test('an imported save cannot put HTML in a Flood Season attacker\'s name', () =
|
|||
assert.equal(dom.window.document.getElementById('pwn2'), null, 'and the toast escapes it anyway');
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
test('the China licence arrives in a tenth of the time with quick lead times, and the button says so', () => {
|
||||
for (const [preset, days] of [['oncall', 45], ['freeze', 5]]) {
|
||||
const { ev, errors } = load();
|
||||
ev(`beginGame('C','fra',{mode:'normal',preset:'${preset}'});if(UI.pendGame)ACT.pitchSkip();S.cash=1e9`);
|
||||
assert.match(ev("tr('link_panels.apply_for_a_license_price_mo_n_days',{price:'$1',mo:'$1',n:leadDays(45)})"), new RegExp(`~${days} days`));
|
||||
ev('ACT.applyCn()');
|
||||
assert.equal(ev('S.cnLic.ready-S.day'), days, preset);
|
||||
assert.deepEqual(errors, []);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue