Skip to content

Commit

Permalink
ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
innerthunder committed Oct 4, 2024
1 parent 6d89c97 commit a6faf12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/moves/electrify.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ describe("Moves - Electrify", () => {
});

it("should convert attacks to Electric type", async () => {
await game.classicMode.startBattle([Species.EXCADRILL]);
await game.classicMode.startBattle([ Species.EXCADRILL ]);

const playerPokemon = game.scene.getPlayerPokemon()!;
const enemyPokemon = game.scene.getEnemyPokemon()!;
vi.spyOn(enemyPokemon, "getMoveType");

game.move.select(Moves.ELECTRIFY);

await game.setTurnOrder([BattlerIndex.PLAYER, BattlerIndex.ENEMY]);
await game.setTurnOrder([ BattlerIndex.PLAYER, BattlerIndex.ENEMY ]);

await game.phaseInterceptor.to("BerryPhase", false);
expect(enemyPokemon.getMoveType).toHaveLastReturnedWith(Type.ELECTRIC);
Expand All @@ -52,15 +52,15 @@ describe("Moves - Electrify", () => {
it("should override type changes from abilities", async () => {
game.override.enemyAbility(Abilities.PIXILATE);

await game.classicMode.startBattle([Species.EXCADRILL]);
await game.classicMode.startBattle([ Species.EXCADRILL ]);

const playerPokemon = game.scene.getPlayerPokemon()!;
const enemyPokemon = game.scene.getPlayerPokemon()!;
vi.spyOn(enemyPokemon, "getMoveType");

game.move.select(Moves.ELECTRIFY);

await game.setTurnOrder([BattlerIndex.PLAYER, BattlerIndex.ENEMY]);
await game.setTurnOrder([ BattlerIndex.PLAYER, BattlerIndex.ENEMY ]);

await game.phaseInterceptor.to("BerryPhase", false);
expect(enemyPokemon.getMoveType).toHaveLastReturnedWith(Type.ELECTRIC);
Expand Down

0 comments on commit a6faf12

Please sign in to comment.