added test for normal execute of move

This commit is contained in:
DustinLin 2024-09-08 20:46:44 -07:00
parent 47e0890265
commit 395501c727

View File

@ -28,8 +28,8 @@ describe("Moves - Chilly Reception", () => {
game.override.battleType("single")
.moveset([Moves.CHILLY_RECEPTION, Moves.SNOWSCAPE])
.enemyMoveset(SPLASH_ONLY)
.enemyAbility(Abilities.BALL_FETCH)
.ability(Abilities.BALL_FETCH);
.enemyAbility(Abilities.NONE)
.ability(Abilities.NONE);
});
@ -57,4 +57,16 @@ describe("Moves - Chilly Reception", () => {
expect(game.scene.arena.weather?.weatherType).toBe(WeatherType.SNOW);
expect(game.scene.getPlayerField()[0].species.speciesId).toBe(Species.MEOWTH);
}, TIMEOUT);
it("happy case - switch out and weather changes", async () => {
await game.classicMode.startBattle([Species.SLOWKING, Species.MEOWTH]);
game.move.select(Moves.CHILLY_RECEPTION);
game.doSelectPartyPokemon(1);
await game.phaseInterceptor.to("BerryPhase", false);
expect(game.scene.arena.weather?.weatherType).toBe(WeatherType.SNOW);
expect(game.scene.getPlayerField()[0].species.speciesId).toBe(Species.MEOWTH);
}, TIMEOUT);
});