Add missing check for getEnemyPokemon being undefined

This commit is contained in:
eucalyptusJ 2024-08-26 11:06:28 -04:00
parent 9b011802e6
commit 8a0b78a67f

View File

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