fix lost-at-sea tests

This commit is contained in:
Felix Staud 2024-07-17 15:31:12 -07:00
parent 96d0df42fc
commit 6e97bca0ad
1 changed files with 3 additions and 3 deletions

View File

@ -28,9 +28,9 @@ describe("Lost at Sea - Mystery Encounter", () => {
game = new GameManager(phaserGame); game = new GameManager(phaserGame);
game.override.mysteryEncounterChance(100); game.override.mysteryEncounterChance(100);
game.override.startingBiome(Biome.SEA); game.override.startingBiome(Biome.SEA);
vi.spyOn(MysteryEncounters, "allMysteryEncounters", "get").mockReturnValue({ vi.spyOn(MysteryEncounters, "mysteryEncountersByBiome", "get").mockReturnValue(
[MysteryEncounterType.LOST_AT_SEA]: LostAtSeaEncounter, new Map<Biome, MysteryEncounterType[]>([[Biome.SEA, [MysteryEncounterType.LOST_AT_SEA]]])
}); );
}); });
afterEach(() => { afterEach(() => {