I might have done it

the tests didn't fail
This commit is contained in:
RedstonewolfX 2024-09-18 14:55:03 -04:00
parent c6c489b289
commit 752bd4f017
1 changed files with 5 additions and 1 deletions

View File

@ -60,6 +60,7 @@ describe("Shop modifications", async () => {
.startingWave(9) .startingWave(9)
.startingBiome(Biome.ICE_CAVE) // Will lead to Snowy Forest with randomly generated weather .startingBiome(Biome.ICE_CAVE) // Will lead to Snowy Forest with randomly generated weather
.battleType("single") .battleType("single")
.shinyLevel(true, 2)
.startingLevel(100) // Avoid levelling up .startingLevel(100) // Avoid levelling up
.enemyLevel(1000) // Avoid opponent dying before game.doKillOpponents() .enemyLevel(1000) // Avoid opponent dying before game.doKillOpponents()
.disableTrainerWaves() .disableTrainerWaves()
@ -78,7 +79,6 @@ describe("Shop modifications", async () => {
await game.dailyMode.runToSummon(); await game.dailyMode.runToSummon();
const party = game.scene.getParty(); const party = game.scene.getParty();
expect(party[0]).toBeDefined(); expect(party[0]).toBeDefined();
party[0].shiny = true;
expect(getPartyLuckValue(party)).toBe(0); expect(getPartyLuckValue(party)).toBe(0);
expect(itemPoolChecks.get("EVIOLITE")).toBeDefined(); expect(itemPoolChecks.get("EVIOLITE")).toBeDefined();
expect(itemPoolChecks.get("EVIOLITE")).toBeFalsy(); expect(itemPoolChecks.get("EVIOLITE")).toBeFalsy();
@ -90,6 +90,10 @@ describe("Shop modifications", async () => {
await game.phaseInterceptor.to(BattleEndPhase); await game.phaseInterceptor.to(BattleEndPhase);
game.onNextPrompt("SelectModifierPhase", Mode.MODIFIER_SELECT, () => { game.onNextPrompt("SelectModifierPhase", Mode.MODIFIER_SELECT, () => {
expect(game.scene.ui.getHandler()).toBeInstanceOf(ModifierSelectUiHandler); expect(game.scene.ui.getHandler()).toBeInstanceOf(ModifierSelectUiHandler);
expect(itemPoolChecks.get("EVIOLITE")).toBeDefined();
expect(itemPoolChecks.get("EVIOLITE")).toBeTruthy();
expect(itemPoolChecks.get("MINI_BLACK_HOLE")).toBeDefined();
expect(itemPoolChecks.get("MINI_BLACK_HOLE")).toBeTruthy();
}); });
}); });
}); });