mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-18 21:39:28 +02:00
Fix Bug Superfan ME test
Co-authored-by: Moka <54149968+MokaStitcher@users.noreply.github.com>
This commit is contained in:
parent
db7ca95be4
commit
1d05582de2
@ -383,17 +383,11 @@ describe("Bug-Type Superfan - Mystery Encounter", () => {
|
|||||||
});
|
});
|
||||||
await game.phaseInterceptor.run(MysteryEncounterRewardsPhase);
|
await game.phaseInterceptor.run(MysteryEncounterRewardsPhase);
|
||||||
|
|
||||||
// TODO: what is happening here?
|
|
||||||
expect(selectOptionSpy).toHaveBeenCalledTimes(1);
|
expect(selectOptionSpy).toHaveBeenCalledTimes(1);
|
||||||
const optionData = selectOptionSpy.mock.calls[0][1];
|
const optionData = selectOptionSpy.mock.calls[0][0];
|
||||||
// @ts-expect-error
|
|
||||||
expect(PHYSICAL_TUTOR_MOVES.some(move => new PokemonMove(move).getName() === optionData[0].label)).toBe(true);
|
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);
|
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);
|
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);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user