Adds unit test for recharge moves

This commit is contained in:
Christopher Schmidt 2024-09-24 21:32:59 -04:00
parent 6b5436fe44
commit e37805d53c
1 changed files with 14 additions and 1 deletions

View File

@ -49,7 +49,7 @@ describe("Moves - Metronome", () => {
expect(enemy.isFullHp()).toBeFalsy();
});
// FAILS UNTIL KEV'S MOVE PHASE REFACTOR IS PUT IN
// THESE FAIL UNTIL KEV'S MOVE PHASE REFACTOR IS PUT IN
// it("should apply secondary effects of a move", async () => {
// await game.classicMode.startBattle([Species.REGIELEKI]);
// const player = game.scene.getPlayerPokemon()!;
@ -62,4 +62,17 @@ describe("Moves - Metronome", () => {
// expect(player.isFullHp()).toBeFalsy();
// });
// it("should recharge after using recharge move", async () => {
// await game.classicMode.startBattle([Species.REGIELEKI]);
// const player = game.scene.getPlayerPokemon()!;
// vi.spyOn(player, "randSeedInt").mockReturnValue(Moves.HYPER_BEAM);
// game.move.select(Moves.METRONOME);
// await game.phaseInterceptor.to("MoveEffectPhase");
// await game.move.forceHit();
// await game.toNextTurn();
// expect(player.getTag(RechargingTag)).toBeTruthy();
// })
});