fix(scenario): open nation betting in scenario 29
This commit is contained in:
1 parent
e08789379b
commit
f8b28a055c
6 files changed
+310
No files matched your search
@@ -19,4 +19,20 @@ describe('tracked scenario resources', () => {
|
||||
const scenarios = await Promise.all(scenarioIds.map((scenarioId) => loadScenarioDefinitionById(scenarioId)));
|
||||
expect(scenarios.every((scenario) => scenario.title.length > 0)).toBe(true);
|
||||
});
|
||||
|
||||
it('opens nation betting in the first playable year of every scenario 29 variant', async () => {
|
||||
const scenarioIds = [2900, 2901, 2903, 2904];
|
||||
const scenarios = await Promise.all(scenarioIds.map((scenarioId) => loadScenarioDefinitionById(scenarioId)));
|
||||
|
||||
for (const scenario of scenarios) {
|
||||
expect(scenario.startYear).toBe(2025);
|
||||
expect(scenario.events).toContainEqual([
|
||||
'month',
|
||||
999,
|
||||
['Date', '==', 2026, 1],
|
||||
['OpenNationBetting', 1, 2000],
|
||||
['DeleteEvent'],
|
||||
]);
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user