Update test utils

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
This commit is contained in:
Dobin Shin 2025-06-06 03:04:30 +09:00 committed by GitHub
parent 41b05f0ce3
commit 04d7606122
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,15 +37,15 @@ describe("Abilities - Rattled", () => {
// `runToSummon` used instead of `startBattle` to avoid skipping past initial "post send out" effects // `runToSummon` used instead of `startBattle` to avoid skipping past initial "post send out" effects
await game.classicMode.runToSummon([SpeciesId.GIMMIGHOUL]); await game.classicMode.runToSummon([SpeciesId.GIMMIGHOUL]);
const playerPokemon = game.scene.getPlayerPokemon(); const playerPokemon = game.field.getPlayerPokemon();
await game.phaseInterceptor.to("StatStageChangePhase"); await game.phaseInterceptor.to("StatStageChangePhase");
expect(playerPokemon!.getStatStage(Stat.ATK)).toBe(-1); expect(playerPokemon.getStatStage(Stat.ATK)).toBe(-1);
expect(playerPokemon!.getStatStage(Stat.SPD)).toBe(0); expect(playerPokemon.getStatStage(Stat.SPD)).toBe(0);
await game.phaseInterceptor.to("StatStageChangePhase"); await game.phaseInterceptor.to("StatStageChangePhase");
expect(playerPokemon!.getStatStage(Stat.ATK)).toBe(-1); expect(playerPokemon.getStatStage(Stat.ATK)).toBe(-1);
expect(playerPokemon!.getStatStage(Stat.SPD)).toBe(1); expect(playerPokemon.getStatStage(Stat.SPD)).toBe(1);
}); });
}); });