mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-08 00:19:29 +02:00
Fixed tests
This commit is contained in:
parent
3d468d6522
commit
c41ada5103
@ -246,7 +246,9 @@ describe("Moves - Destiny Bond", () => {
|
|||||||
expect(playerPokemon.isFainted()).toBe(true);
|
expect(playerPokemon.isFainted()).toBe(true);
|
||||||
|
|
||||||
// Check that the Tackle user's Reviver Seed did not activate
|
// Check that the Tackle user's Reviver Seed did not activate
|
||||||
const revSeeds = game.scene.getModifiers(PokemonInstantReviveModifier).filter(m => m.pokemonId === enemyPokemon.id);
|
const revSeeds = game.scene
|
||||||
|
.getModifiers(PokemonInstantReviveModifier)
|
||||||
|
.filter(m => m.pokemonId === playerPokemon.id);
|
||||||
expect(revSeeds.length).toBe(1);
|
expect(revSeeds.length).toBe(1);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -40,7 +40,7 @@ describe("Moves - Psycho Shift", () => {
|
|||||||
const playerPokemon = game.field.getPlayerPokemon();
|
const playerPokemon = game.field.getPlayerPokemon();
|
||||||
const enemyPokemon = game.field.getEnemyPokemon();
|
const enemyPokemon = game.field.getEnemyPokemon();
|
||||||
expect(playerPokemon.status).toBeDefined();
|
expect(playerPokemon.status).toBeDefined();
|
||||||
expect(enemyPokemon.status).toBeNull();
|
expect(enemyPokemon.status).toBeFalsy();
|
||||||
|
|
||||||
game.move.select(MoveId.PSYCHO_SHIFT);
|
game.move.select(MoveId.PSYCHO_SHIFT);
|
||||||
await game.phaseInterceptor.to("TurnEndPhase");
|
await game.phaseInterceptor.to("TurnEndPhase");
|
||||||
|
Loading…
Reference in New Issue
Block a user