Fixed wish test bug

This commit is contained in:
Bertie690 2025-09-21 18:53:37 -04:00
parent 7ce9f0c6c6
commit 2348da421d

View File

@ -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();