Fix leftovers.test.ts

Thing was waiting till end of turn but heal happened after
This commit is contained in:
Bertie690 2025-06-24 12:38:33 -04:00 committed by GitHub
parent 1529fd9329
commit b001496035
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,7 +54,7 @@ describe("Items - Leftovers", () => {
const leadHpAfterDamage = leadPokemon.hp;
// Check if leftovers heal us
await game.phaseInterceptor.to(TurnEndPhase);
await game.toNextTurn();
expect(leadPokemon.hp).toBeGreaterThan(leadHpAfterDamage);
});
});