diff --git a/src/test/final_boss.test.ts b/src/test/final_boss.test.ts index 1636b66707b..3e1225295e0 100644 --- a/src/test/final_boss.test.ts +++ b/src/test/final_boss.test.ts @@ -60,8 +60,8 @@ describe("Final Boss", () => { await runToFinalBossEncounter(game, [Species.BIDOOF]); const eternatus = game.scene.getEnemyPokemon(); - expect(eternatus.species.speciesId).toBe(Species.ETERNATUS); - expect(eternatus.hasPassive()).toBe(false); + expect(eternatus?.species.speciesId).toBe(Species.ETERNATUS); + expect(eternatus?.hasPassive()).toBe(false); }); it.todo("should change form on direct hit down to last boss fragment", () => {});