From e69538f6a996c0d33eee031c3dbac3e9847749f1 Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Sun, 30 Jun 2024 17:36:26 -0700 Subject: [PATCH] Fix off-by-one error in test caused by rounding issues --- src/test/moves/glaive_rush.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/moves/glaive_rush.test.ts b/src/test/moves/glaive_rush.test.ts index f2c306f97150..173be77fadf1 100644 --- a/src/test/moves/glaive_rush.test.ts +++ b/src/test/moves/glaive_rush.test.ts @@ -49,7 +49,7 @@ describe("Moves - Glaive Rush", () => { await game.phaseInterceptor.to(TurnEndPhase); game.doAttack(getMovePosition(game.scene, 0, Moves.SHADOW_SNEAK)); await game.phaseInterceptor.to(DamagePhase); - expect(enemy.hp).toBeLessThanOrEqual(1000 - (damageDealt * 3)); + expect(enemy.hp).toBeLessThanOrEqual(1001 - (damageDealt * 3)); }, 20000);