mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 23:42:18 +02:00
Add missing check for getEnemyPokemon being undefined
This commit is contained in:
parent
9b011802e6
commit
8a0b78a67f
@ -155,7 +155,7 @@ describe("Moves - Trick", () => {
|
||||
game.move.select(Moves.TRICK);
|
||||
await game.phaseInterceptor.to(TurnEndPhase);
|
||||
|
||||
const enemyPokemon = game.scene.getEnemyPokemon();
|
||||
const enemyPokemon = game.scene.getEnemyPokemon()!;
|
||||
expect(enemyPokemon.getHeldItems()[0].type.id === "FLAME_ORB").toBeTruthy();
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user