From a97dafe8b2479e9b2ddd49d4dc9710814d7c7b67 Mon Sep 17 00:00:00 2001 From: flx-sta <50131232+flx-sta@users.noreply.github.com> Date: Tue, 29 Oct 2024 09:16:57 -0700 Subject: [PATCH] skip some clowning-around-encounter tests if events are active this is not a permanent solution --- .../encounters/clowning-around-encounter.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/mystery-encounter/encounters/clowning-around-encounter.test.ts b/src/test/mystery-encounter/encounters/clowning-around-encounter.test.ts index 82ed558e6db..c24e4a2b3af 100644 --- a/src/test/mystery-encounter/encounters/clowning-around-encounter.test.ts +++ b/src/test/mystery-encounter/encounters/clowning-around-encounter.test.ts @@ -32,6 +32,7 @@ import { CommandPhase } from "#app/phases/command-phase"; import { MovePhase } from "#app/phases/move-phase"; import { SelectModifierPhase } from "#app/phases/select-modifier-phase"; import { NewBattlePhase } from "#app/phases/new-battle-phase"; +import { TimedEventManager } from "#app/timed-event-manager"; const namespace = "mysteryEncounters/clowningAround"; const defaultParty = [ Species.LAPRAS, Species.GENGAR, Species.ABRA ]; @@ -224,6 +225,7 @@ describe("Clowning Around - Mystery Encounter", () => { }); describe("Option 2 - Remain Unprovoked", () => { + it("should have the correct properties", () => { const option = ClowningAroundEncounter.options[1]; expect(option.optionMode).toBe(MysteryEncounterOptionMode.DEFAULT); @@ -247,7 +249,7 @@ describe("Clowning Around - Mystery Encounter", () => { }); }); - it("should randomize held items of the Pokemon with the most items, and not the held items of other pokemon", async () => { + it.skipIf(new TimedEventManager().isEventActive())("should randomize held items of the Pokemon with the most items, and not the held items of other pokemon", async () => { await game.runToMysteryEncounter(MysteryEncounterType.CLOWNING_AROUND, defaultParty); // Set some moves on party for attack type booster generation