mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 08:16:04 +00:00
[Test] Prevent flying types/levitate from breaking Ceaseless Edge test (#2931)
* Modifies ceaseless edge test to account for flying types/levitate ability * Removes .js from imports
This commit is contained in:
parent
7474eac808
commit
0b5b481de6
@ -9,9 +9,10 @@ import {
|
||||
import {getMovePosition} from "#app/test/utils/gameManagerUtils";
|
||||
import { Moves } from "#enums/moves";
|
||||
import { Species } from "#enums/species";
|
||||
import { ArenaTagType } from "#app/enums/arena-tag-type.js";
|
||||
import { allMoves } from "#app/data/move.js";
|
||||
import { ArenaTagSide, ArenaTrapTag } from "#app/data/arena-tag.js";
|
||||
import { ArenaTagType } from "#app/enums/arena-tag-type";
|
||||
import { allMoves } from "#app/data/move";
|
||||
import { ArenaTagSide, ArenaTrapTag } from "#app/data/arena-tag";
|
||||
import { Abilities } from "#app/enums/abilities";
|
||||
|
||||
const TIMEOUT = 20 * 1000;
|
||||
|
||||
@ -33,6 +34,8 @@ describe("Moves - Ceaseless Edge", () => {
|
||||
game = new GameManager(phaserGame);
|
||||
vi.spyOn(overrides, "SINGLE_BATTLE_OVERRIDE", "get").mockReturnValue(true);
|
||||
vi.spyOn(overrides, "OPP_SPECIES_OVERRIDE", "get").mockReturnValue(Species.RATTATA);
|
||||
vi.spyOn(overrides, "OPP_ABILITY_OVERRIDE", "get").mockReturnValue(Abilities.RUN_AWAY);
|
||||
vi.spyOn(overrides, "OPP_PASSIVE_ABILITY_OVERRIDE", "get").mockReturnValue(Abilities.RUN_AWAY);
|
||||
vi.spyOn(overrides, "STARTING_LEVEL_OVERRIDE", "get").mockReturnValue(100);
|
||||
vi.spyOn(overrides, "OPP_LEVEL_OVERRIDE", "get").mockReturnValue(100);
|
||||
vi.spyOn(overrides, "MOVESET_OVERRIDE", "get").mockReturnValue([ Moves.CEASELESS_EDGE, Moves.SPLASH, Moves.ROAR ]);
|
||||
@ -103,9 +106,8 @@ describe("Moves - Ceaseless Edge", () => {
|
||||
async () => {
|
||||
vi.spyOn(overrides, "STARTING_HELD_ITEMS_OVERRIDE", "get").mockReturnValue([{name: "MULTI_LENS"}]);
|
||||
vi.spyOn(overrides, "STARTING_WAVE_OVERRIDE", "get").mockReturnValue(5);
|
||||
vi.spyOn(overrides, "OPP_SPECIES_OVERRIDE", "get").mockReturnValue(0);
|
||||
|
||||
await game.startBattle([ Species.SNORLAX, Species.MUNCHLAX ]);
|
||||
await game.startBattle([ Species.ILLUMISE ]);
|
||||
|
||||
const leadPokemon = game.scene.getPlayerPokemon();
|
||||
expect(leadPokemon).toBeDefined();
|
||||
|
Loading…
Reference in New Issue
Block a user