fixed dynamax cannon test

This commit is contained in:
frutescens 2024-08-21 23:51:24 -07:00
parent 516cec232d
commit d77c923ce4

View File

@ -166,7 +166,7 @@ describe("Moves - Dynamax Cannon", () => {
await game.phaseInterceptor.to(TurnStartPhase, false);
// Force user to act before enemy
vi.spyOn((game.scene.getCurrentPhase() as TurnStartPhase), "getCommandOrder").mockReturnValue([ BattlerIndex.PLAYER, BattlerIndex. ENEMY]);
await game.setTurnOrder([BattlerIndex.PLAYER, BattlerIndex.ENEMY]);
await game.phaseInterceptor.to(MoveEffectPhase, false);
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(dynamaxCannon.id);