mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
Fixed tests that were still calling the old function name
This commit is contained in:
parent
2db94d7005
commit
c35fb047be
@ -111,7 +111,7 @@ describe("Abilities - Cud Chew", () => {
|
|||||||
|
|
||||||
it("can store multiple berries across 2 turns with teatime", async () => {
|
it("can store multiple berries across 2 turns with teatime", async () => {
|
||||||
// always eat first berry for stuff cheeks & company
|
// always eat first berry for stuff cheeks & company
|
||||||
vi.spyOn(Pokemon.prototype, "randSeedInt").mockReturnValue(0);
|
vi.spyOn(Pokemon.prototype, "randBattleSeedInt").mockReturnValue(0);
|
||||||
game.override
|
game.override
|
||||||
.startingHeldItems([
|
.startingHeldItems([
|
||||||
{ name: "BERRY", type: BerryType.PETAYA, count: 3 },
|
{ name: "BERRY", type: BerryType.PETAYA, count: 3 },
|
||||||
|
@ -139,7 +139,7 @@ describe("Abilities - Desolate Land", () => {
|
|||||||
await game.classicMode.startBattle([Species.MAGIKARP]);
|
await game.classicMode.startBattle([Species.MAGIKARP]);
|
||||||
expect(game.scene.arena.weather?.weatherType).toBe(WeatherType.HARSH_SUN);
|
expect(game.scene.arena.weather?.weatherType).toBe(WeatherType.HARSH_SUN);
|
||||||
|
|
||||||
vi.spyOn(game.scene.getPlayerPokemon()!, "randSeedInt").mockReturnValue(0);
|
vi.spyOn(game.scene.getPlayerPokemon()!, "randBattleSeedInt").mockReturnValue(0);
|
||||||
|
|
||||||
const commandPhase = game.scene.getCurrentPhase() as CommandPhase;
|
const commandPhase = game.scene.getCurrentPhase() as CommandPhase;
|
||||||
commandPhase.handleCommand(Command.RUN, 0);
|
commandPhase.handleCommand(Command.RUN, 0);
|
||||||
|
@ -164,7 +164,7 @@ describe("Abilities - Neutralizing Gas", () => {
|
|||||||
await game.classicMode.startBattle([Species.MAGIKARP]);
|
await game.classicMode.startBattle([Species.MAGIKARP]);
|
||||||
expect(game.scene.arena.getTag(ArenaTagType.NEUTRALIZING_GAS)).toBeDefined();
|
expect(game.scene.arena.getTag(ArenaTagType.NEUTRALIZING_GAS)).toBeDefined();
|
||||||
|
|
||||||
vi.spyOn(game.scene.getPlayerPokemon()!, "randSeedInt").mockReturnValue(0);
|
vi.spyOn(game.scene.getPlayerPokemon()!, "randBattleSeedInt").mockReturnValue(0);
|
||||||
|
|
||||||
const commandPhase = game.scene.getCurrentPhase() as CommandPhase;
|
const commandPhase = game.scene.getCurrentPhase() as CommandPhase;
|
||||||
commandPhase.handleCommand(Command.RUN, 0);
|
commandPhase.handleCommand(Command.RUN, 0);
|
||||||
|
@ -73,7 +73,7 @@ describe("Items - Reviver Seed", () => {
|
|||||||
const reviverSeed = player.getHeldItems()[0] as PokemonInstantReviveModifier;
|
const reviverSeed = player.getHeldItems()[0] as PokemonInstantReviveModifier;
|
||||||
vi.spyOn(reviverSeed, "apply");
|
vi.spyOn(reviverSeed, "apply");
|
||||||
|
|
||||||
vi.spyOn(player, "randSeedInt").mockReturnValue(0); // Force confusion self-hit
|
vi.spyOn(player, "randBattleSeedInt").mockReturnValue(0); // Force confusion self-hit
|
||||||
game.move.select(Moves.TACKLE);
|
game.move.select(Moves.TACKLE);
|
||||||
await game.phaseInterceptor.to("BerryPhase");
|
await game.phaseInterceptor.to("BerryPhase");
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ describe("Moves - U-turn", () => {
|
|||||||
// arrange
|
// arrange
|
||||||
game.override.enemyAbility(Abilities.POISON_POINT);
|
game.override.enemyAbility(Abilities.POISON_POINT);
|
||||||
await game.classicMode.startBattle([Species.RAICHU, Species.SHUCKLE]);
|
await game.classicMode.startBattle([Species.RAICHU, Species.SHUCKLE]);
|
||||||
vi.spyOn(game.scene.getEnemyPokemon()!, "randSeedInt").mockReturnValue(0);
|
vi.spyOn(game.scene.getEnemyPokemon()!, "randBattleSeedInt").mockReturnValue(0);
|
||||||
|
|
||||||
// act
|
// act
|
||||||
game.move.select(Moves.U_TURN);
|
game.move.select(Moves.U_TURN);
|
||||||
|
Loading…
Reference in New Issue
Block a user