Fix Bug Superfan ME test

Co-authored-by: Moka <54149968+MokaStitcher@users.noreply.github.com>
This commit is contained in:
NightKev 2024-11-03 18:25:08 -08:00 committed by GitHub
parent db7ca95be4
commit 1d05582de2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -383,17 +383,11 @@ describe("Bug-Type Superfan - Mystery Encounter", () => {
});
await game.phaseInterceptor.run(MysteryEncounterRewardsPhase);
// TODO: what is happening here?
expect(selectOptionSpy).toHaveBeenCalledTimes(1);
const optionData = selectOptionSpy.mock.calls[0][1];
// @ts-expect-error
const optionData = selectOptionSpy.mock.calls[0][0];
expect(PHYSICAL_TUTOR_MOVES.some(move => new PokemonMove(move).getName() === optionData[0].label)).toBe(true);
// @ts-expect-error
expect(SPECIAL_TUTOR_MOVES.some(move => new PokemonMove(move).getName() === optionData[1].label)).toBe(true);
// @ts-expect-error
expect(STATUS_TUTOR_MOVES.some(move => new PokemonMove(move).getName() === optionData[2].label)).toBe(true);
// @ts-expect-error
expect(MISC_TUTOR_MOVES.some(move => new PokemonMove(move).getName() === optionData[3].label)).toBe(true);
});
});