mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 00:52:47 +02:00
Update test utils
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
This commit is contained in:
parent
41b05f0ce3
commit
04d7606122
@ -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);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user