Fix improper test

This commit is contained in:
Sirz Benjie 2025-05-21 22:50:52 -05:00
parent f7beb82323
commit 4bc931764c
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -148,21 +148,17 @@ describe("Moves - Natural Gift", () => {
});
it("should clear BerryType once successfully used", async () => {
game.override
game.override
.startingHeldItems([{ name: "BERRY", type: BerryType.SITRUS, count: 3 }])
.ability(Abilities.NORMALIZE)
.enemySpecies(Species.MACHAMP);
await game.classicMode.startBattle([Species.BULBASAUR]);
const player = game.scene.getPlayerPokemon()!;
expect(getHeldItemCount(player)).toBe(3);
const enemy = game.scene.getEnemyPokemon()!;
game.move.select(Moves.NATURAL_GIFT);
await game.setTurnOrder([BattlerIndex.PLAYER, BattlerIndex.ENEMY]);
await game.toNextTurn();
expect(getHeldItemCount(player)).toBe(2);
expect(enemy.getMoveEffectiveness).toHaveReturnedWith(2);
expect(NaturalGiftBerrySelector.getSelectedBerry()).toBeFalsy();
});
});