From 3d0c050a5ed1894656229998af44bc2d2d50fff6 Mon Sep 17 00:00:00 2001 From: Bertie690 <136088738+Bertie690@users.noreply.github.com> Date: Tue, 17 Jun 2025 07:57:02 -0400 Subject: [PATCH] Update error msg to not use fullcaps --- test/testUtils/helpers/moveHelper.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test/testUtils/helpers/moveHelper.ts b/test/testUtils/helpers/moveHelper.ts index 206f214216b..dcef00a9a46 100644 --- a/test/testUtils/helpers/moveHelper.ts +++ b/test/testUtils/helpers/moveHelper.ts @@ -64,10 +64,12 @@ export class MoveHelper extends GameManagerHelper { const movePosition = this.getMovePosition(pkmIndex, move); if (movePosition === -1) { expect.fail( - `MoveHelper.select called with move ${toReadableString(MoveId[move])} not in moveset;\nBattler Index: ${BattlerIndex[pkmIndex]};\nMoveset: ${this.game.scene + `MoveHelper.select called with move ${toReadableString(MoveId[move])} not in moveset! + Battler Index: ${toReadableString(BattlerIndex[pkmIndex])}; + Moveset: ${this.game.scene .getField() [pkmIndex].getMoveset() - .map(pm => MoveId[pm.moveId]) + .map(pm => toReadableString(MoveId[pm.moveId])) .join(", ")}`, ); } @@ -106,10 +108,12 @@ export class MoveHelper extends GameManagerHelper { const movePosition = this.getMovePosition(pkmIndex, move); if (movePosition === -1) { expect.fail( - `MoveHelper.selectWithTera called with move ${toReadableString(MoveId[move])} not in moveset;\nBattler Index: ${BattlerIndex[pkmIndex]};\nMoveset: ${this.game.scene + `MoveHelper.selectWithTera called with move '${toReadableString(MoveId[move])}'not in moveset! + Battler Index: ${toReadableString(BattlerIndex[pkmIndex])}; + Moveset: ${this.game.scene .getField() [pkmIndex].getMoveset() - .map(pm => MoveId[pm.moveId]) + .map(pm => toReadableString(MoveId[pm.moveId])) .join(", ")}`, ); }