From 6e97bca0ad3abc18ac46a2a261e081153a182ccf Mon Sep 17 00:00:00 2001 From: Felix Staud Date: Wed, 17 Jul 2024 15:31:12 -0700 Subject: [PATCH] fix lost-at-sea tests --- .../encounters/lost-at-sea-encounter.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/mystery-encounter/encounters/lost-at-sea-encounter.test.ts b/src/test/mystery-encounter/encounters/lost-at-sea-encounter.test.ts index 928da9760d4..1b2bc157772 100644 --- a/src/test/mystery-encounter/encounters/lost-at-sea-encounter.test.ts +++ b/src/test/mystery-encounter/encounters/lost-at-sea-encounter.test.ts @@ -28,9 +28,9 @@ describe("Lost at Sea - Mystery Encounter", () => { game = new GameManager(phaserGame); game.override.mysteryEncounterChance(100); game.override.startingBiome(Biome.SEA); - vi.spyOn(MysteryEncounters, "allMysteryEncounters", "get").mockReturnValue({ - [MysteryEncounterType.LOST_AT_SEA]: LostAtSeaEncounter, - }); + vi.spyOn(MysteryEncounters, "mysteryEncountersByBiome", "get").mockReturnValue( + new Map([[Biome.SEA, [MysteryEncounterType.LOST_AT_SEA]]]) + ); }); afterEach(() => {