mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-06 07:29:30 +02:00
hopefullt fixed tests
This commit is contained in:
parent
36969cabc9
commit
c51c5a2b34
@ -29,8 +29,8 @@ describe("Abilities - Arena Trap", () => {
|
||||
game = new GameManager(phaserGame);
|
||||
game.override
|
||||
.ability(AbilityId.ARENA_TRAP)
|
||||
.enemyAbility(AbilityId.ARENA_TRAP)
|
||||
.enemySpecies(SpeciesId.RALTS)
|
||||
.enemyAbility(AbilityId.BALL_FETCH)
|
||||
.enemyMoveset(MoveId.SPLASH);
|
||||
});
|
||||
|
||||
@ -63,7 +63,7 @@ describe("Abilities - Arena Trap", () => {
|
||||
});
|
||||
|
||||
it("should interrupt player switch attempt and display message", async () => {
|
||||
game.override.battleStyle("single").enemyAbility(AbilityId.ARENA_TRAP);
|
||||
game.override.battleStyle("single");
|
||||
await game.classicMode.startBattle([SpeciesId.DUGTRIO, SpeciesId.GOTHITELLE]);
|
||||
|
||||
const enemy = game.field.getEnemyPokemon();
|
||||
@ -74,6 +74,7 @@ describe("Abilities - Arena Trap", () => {
|
||||
expect(game.scene.currentBattle.turnCommands[0]).toBeNull();
|
||||
|
||||
// back out and cancel the switch to avoid timeout
|
||||
(game.scene.ui.getHandler() as CommandUiHandler).processInput(Button.ACTION);
|
||||
(game.scene.ui.getHandler() as CommandUiHandler).processInput(Button.CANCEL);
|
||||
game.move.use(MoveId.SPLASH);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user