From 3b36836608a691504f3c864ac4c6b20845e1fcc7 Mon Sep 17 00:00:00 2001 From: ImperialSympathizer Date: Sun, 28 Jul 2024 12:12:11 -0400 Subject: [PATCH] fix unit test --- .../encounters/absolute-avarice-encounter.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/mystery-encounter/encounters/absolute-avarice-encounter.test.ts b/src/test/mystery-encounter/encounters/absolute-avarice-encounter.test.ts index 0df5ec9403f..4aaf5f3d518 100644 --- a/src/test/mystery-encounter/encounters/absolute-avarice-encounter.test.ts +++ b/src/test/mystery-encounter/encounters/absolute-avarice-encounter.test.ts @@ -84,7 +84,7 @@ describe("Absolute Avarice - Mystery Encounter", () => { game.override.startingBiome(Biome.VOLCANO); await game.runToMysteryEncounter(); - expect(game.scene.currentBattle.mysteryEncounter.encounterType).not.toBe(MysteryEncounterType.ABSOLUTE_AVARICE); + expect(game.scene.currentBattle.mysteryEncounter?.encounterType).not.toBe(MysteryEncounterType.ABSOLUTE_AVARICE); }); it("should not spawn if player does not have enough berries", async () => {