mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-24 15:33:29 +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);
|
expect(game).toHavePositionalTag(PositionalTagType.WISH, 0);
|
||||||
|
|
||||||
const healPhases = game.scene.phaseManager["phaseQueue"].findAll("PokemonHealPhase");
|
const healPhases = game.scene.phaseManager["phaseQueue"].findAll("PokemonHealPhase");
|
||||||
expect(healPhases).toHaveLength(4);
|
// account for phase interceptor stopping _after_ the first PokemonHealPhase is started
|
||||||
expect.soft(healPhases.map(php => php.getPokemon())).toEqual(oldOrder);
|
// 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();
|
await game.toEndOfTurn();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user