mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 15:03:24 +02:00
Fixed wish test bug
This commit is contained in:
parent
7ce9f0c6c6
commit
2348da421d
@ -136,8 +136,11 @@ describe("Move - Wish", () => {
|
||||
expect(game).toHavePositionalTag(PositionalTagType.WISH, 0);
|
||||
|
||||
const healPhases = game.scene.phaseManager["phaseQueue"].findAll("PokemonHealPhase");
|
||||
expect(healPhases).toHaveLength(4);
|
||||
expect.soft(healPhases.map(php => php.getPokemon())).toEqual(oldOrder);
|
||||
// account for phase interceptor stopping _after_ the first PokemonHealPhase is started
|
||||
// TODO: Remove in phase-interceptor PR (intentionally will fail if not removed)
|
||||
expect(game).toBeAtPhase("PokemonHealPhase");
|
||||
expect(healPhases).toHaveLength(3);
|
||||
expect(healPhases.map(php => php.getPokemon())).toEqual(oldOrder);
|
||||
|
||||
await game.toEndOfTurn();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user