mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 06:53:27 +02:00
[Test] Fix leftovers test not running heal phase (#6370)
Fix leftovers test
This commit is contained in:
parent
af963c7902
commit
d2eb3dba53
@ -2,7 +2,6 @@ import { AbilityId } from "#enums/ability-id";
|
||||
import { MoveId } from "#enums/move-id";
|
||||
import { SpeciesId } from "#enums/species-id";
|
||||
import { DamageAnimPhase } from "#phases/damage-anim-phase";
|
||||
import { TurnEndPhase } from "#phases/turn-end-phase";
|
||||
import { GameManager } from "#test/test-utils/game-manager";
|
||||
import Phaser from "phaser";
|
||||
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
||||
@ -54,7 +53,7 @@ describe("Items - Leftovers", () => {
|
||||
const leadHpAfterDamage = leadPokemon.hp;
|
||||
|
||||
// Check if leftovers heal us
|
||||
await game.phaseInterceptor.to(TurnEndPhase);
|
||||
await game.phaseInterceptor.to("PokemonHealPhase");
|
||||
expect(leadPokemon.hp).toBeGreaterThan(leadHpAfterDamage);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user