mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 07:52:17 +02:00
Fix improper test
This commit is contained in:
parent
f7beb82323
commit
4bc931764c
@ -150,19 +150,15 @@ describe("Moves - Natural Gift", () => {
|
|||||||
it("should clear BerryType once successfully used", async () => {
|
it("should clear BerryType once successfully used", async () => {
|
||||||
game.override
|
game.override
|
||||||
.startingHeldItems([{ name: "BERRY", type: BerryType.SITRUS, count: 3 }])
|
.startingHeldItems([{ name: "BERRY", type: BerryType.SITRUS, count: 3 }])
|
||||||
.ability(Abilities.NORMALIZE)
|
|
||||||
.enemySpecies(Species.MACHAMP);
|
.enemySpecies(Species.MACHAMP);
|
||||||
|
|
||||||
await game.classicMode.startBattle([Species.BULBASAUR]);
|
await game.classicMode.startBattle([Species.BULBASAUR]);
|
||||||
const player = game.scene.getPlayerPokemon()!;
|
const player = game.scene.getPlayerPokemon()!;
|
||||||
expect(getHeldItemCount(player)).toBe(3);
|
expect(getHeldItemCount(player)).toBe(3);
|
||||||
const enemy = game.scene.getEnemyPokemon()!;
|
|
||||||
|
|
||||||
game.move.select(Moves.NATURAL_GIFT);
|
game.move.select(Moves.NATURAL_GIFT);
|
||||||
await game.setTurnOrder([BattlerIndex.PLAYER, BattlerIndex.ENEMY]);
|
|
||||||
await game.toNextTurn();
|
await game.toNextTurn();
|
||||||
|
|
||||||
expect(getHeldItemCount(player)).toBe(2);
|
expect(NaturalGiftBerrySelector.getSelectedBerry()).toBeFalsy();
|
||||||
expect(enemy.getMoveEffectiveness).toHaveReturnedWith(2);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user