mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-28 18:29:36 +02:00
remove: manual test timeouts from chilly reception tests
This commit is contained in:
parent
c1fa7499a8
commit
5ea5fcfcee
@ -6,8 +6,6 @@ import GameManager from "#test/utils/gameManager";
|
|||||||
import Phaser from "phaser";
|
import Phaser from "phaser";
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
||||||
|
|
||||||
const TIMEOUT = 20 * 1000;
|
|
||||||
|
|
||||||
describe("Moves - Chilly Reception", () => {
|
describe("Moves - Chilly Reception", () => {
|
||||||
let phaserGame: Phaser.Game;
|
let phaserGame: Phaser.Game;
|
||||||
let game: GameManager;
|
let game: GameManager;
|
||||||
@ -39,7 +37,7 @@ describe("Moves - Chilly Reception", () => {
|
|||||||
|
|
||||||
await game.phaseInterceptor.to("BerryPhase", false);
|
await game.phaseInterceptor.to("BerryPhase", false);
|
||||||
expect(game.scene.arena.weather?.weatherType).toBe(WeatherType.SNOW);
|
expect(game.scene.arena.weather?.weatherType).toBe(WeatherType.SNOW);
|
||||||
}, TIMEOUT);
|
});
|
||||||
|
|
||||||
it("should switch out even if it's snowing", async () => {
|
it("should switch out even if it's snowing", async () => {
|
||||||
await game.classicMode.startBattle([Species.SLOWKING, Species.MEOWTH]);
|
await game.classicMode.startBattle([Species.SLOWKING, Species.MEOWTH]);
|
||||||
@ -55,7 +53,7 @@ describe("Moves - Chilly Reception", () => {
|
|||||||
await game.phaseInterceptor.to("BerryPhase", false);
|
await game.phaseInterceptor.to("BerryPhase", false);
|
||||||
expect(game.scene.arena.weather?.weatherType).toBe(WeatherType.SNOW);
|
expect(game.scene.arena.weather?.weatherType).toBe(WeatherType.SNOW);
|
||||||
expect(game.scene.getPlayerField()[0].species.speciesId).toBe(Species.MEOWTH);
|
expect(game.scene.getPlayerField()[0].species.speciesId).toBe(Species.MEOWTH);
|
||||||
}, TIMEOUT);
|
});
|
||||||
|
|
||||||
it("happy case - switch out and weather changes", async () => {
|
it("happy case - switch out and weather changes", async () => {
|
||||||
|
|
||||||
@ -67,5 +65,5 @@ describe("Moves - Chilly Reception", () => {
|
|||||||
await game.phaseInterceptor.to("BerryPhase", false);
|
await game.phaseInterceptor.to("BerryPhase", false);
|
||||||
expect(game.scene.arena.weather?.weatherType).toBe(WeatherType.SNOW);
|
expect(game.scene.arena.weather?.weatherType).toBe(WeatherType.SNOW);
|
||||||
expect(game.scene.getPlayerField()[0].species.speciesId).toBe(Species.MEOWTH);
|
expect(game.scene.getPlayerField()[0].species.speciesId).toBe(Species.MEOWTH);
|
||||||
}, TIMEOUT);
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user