diff --git a/test/moves/gastro_acid.test.ts b/test/moves/gastro_acid.test.ts index dbaa53dcb4f..677b95df2ff 100644 --- a/test/moves/gastro_acid.test.ts +++ b/test/moves/gastro_acid.test.ts @@ -96,7 +96,7 @@ describe("Moves - Gastro Acid", () => { await game.toNextTurn(); expect(enemyPokemon?.getHpRatio()).toBeLessThan(1); - game.move.select(MoveId.SPORE); + game.move.use(MoveId.SPORE); await game.phaseInterceptor.to("BerryPhase"); expect(enemyPokemon?.status?.effect).toBeFalsy(); diff --git a/test/moves/instruct.test.ts b/test/moves/instruct.test.ts index d12859301b6..19b7a941de7 100644 --- a/test/moves/instruct.test.ts +++ b/test/moves/instruct.test.ts @@ -349,7 +349,7 @@ describe("Moves - Instruct", () => { useMode: MoveUseMode.NORMAL, }); - game.move.select(MoveId.SPLASH); + game.move.use(MoveId.SPLASH); await game.setTurnOrder([BattlerIndex.ENEMY, BattlerIndex.PLAYER]); await game.toEndOfTurn(); expect(game.field.getEnemyPokemon().getLastXMoves()[0].result).toBe(MoveResult.FAIL); diff --git a/test/testUtils/helpers/moveHelper.ts b/test/testUtils/helpers/moveHelper.ts index af572674e6e..206f214216b 100644 --- a/test/testUtils/helpers/moveHelper.ts +++ b/test/testUtils/helpers/moveHelper.ts @@ -67,7 +67,8 @@ export class MoveHelper extends GameManagerHelper { `MoveHelper.select called with move ${toReadableString(MoveId[move])} not in moveset;\nBattler Index: ${BattlerIndex[pkmIndex]};\nMoveset: ${this.game.scene .getField() [pkmIndex].getMoveset() - .map(pm => MoveId[pm.moveId])}`, + .map(pm => MoveId[pm.moveId]) + .join(", ")}`, ); } @@ -108,7 +109,8 @@ export class MoveHelper extends GameManagerHelper { `MoveHelper.selectWithTera called with move ${toReadableString(MoveId[move])} not in moveset;\nBattler Index: ${BattlerIndex[pkmIndex]};\nMoveset: ${this.game.scene .getField() [pkmIndex].getMoveset() - .map(pm => MoveId[pm.moveId])}`, + .map(pm => MoveId[pm.moveId]) + .join(", ")}`, ); }