Fix id check syrup bomb test

Wasn't running phase due to being a turn end effect
This commit is contained in:
Bertie690 2025-06-06 11:39:16 -04:00 committed by GitHub
parent 565e18fcb2
commit 36d811e302
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,7 +76,7 @@ describe("Field - Pokemon ID Checks", () => {
// Player uses Thief and steals the opponent's item
game.move.select(MoveId.THIEF);
await game.phaseInterceptor.to("TurnEndPhase");
await game.toNextTurn();
expect(enemy.getHeldItems()).toHaveLength(0);
expect(player.getHeldItems()).toHaveLength(1);
@ -94,7 +94,7 @@ describe("Field - Pokemon ID Checks", () => {
expect(enemy.getTag(BattlerTagType.SYRUP_BOMB)).toBeUndefined();
game.move.select(MoveId.SYRUP_BOMB);
await game.phaseInterceptor.to("TurnEndPhase");
await game.toNextTurn();
const syrupTag = enemy.getTag(BattlerTagType.SYRUP_BOMB)!;
expect(syrupTag).toBeDefined();