From e37805d53c6d68008522b979aa371c4e8474f2ae Mon Sep 17 00:00:00 2001 From: Christopher Schmidt Date: Tue, 24 Sep 2024 21:32:59 -0400 Subject: [PATCH] Adds unit test for recharge moves --- src/test/moves/metronome.test.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/test/moves/metronome.test.ts b/src/test/moves/metronome.test.ts index 14ff81c6b71..72d217049f3 100644 --- a/src/test/moves/metronome.test.ts +++ b/src/test/moves/metronome.test.ts @@ -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(); + // }) });