mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-06 18:09:10 +00:00
33 lines
748 B
TypeScript
33 lines
748 B
TypeScript
|
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
||
|
import GameManager from "./utils/gameManager";
|
||
|
|
||
|
describe("Daily Mode", () => {
|
||
|
let phaserGame: Phaser.Game;
|
||
|
let game: GameManager;
|
||
|
|
||
|
beforeAll(() => {
|
||
|
phaserGame = new Phaser.Game({
|
||
|
type: Phaser.HEADLESS,
|
||
|
});
|
||
|
});
|
||
|
|
||
|
beforeEach(() => {
|
||
|
game = new GameManager(phaserGame);
|
||
|
});
|
||
|
|
||
|
afterEach(() => {
|
||
|
game.phaseInterceptor.restoreOg();
|
||
|
});
|
||
|
|
||
|
it("should initialize properly", async () => {
|
||
|
await game.dailyMode.runToSummon();
|
||
|
|
||
|
const party = game.scene.getParty();
|
||
|
expect(party).toHaveLength(3);
|
||
|
party.forEach(pkm => {
|
||
|
expect(pkm.level).toBe(20);
|
||
|
expect(pkm.moveset.length).toBeGreaterThan(0);
|
||
|
});
|
||
|
});
|
||
|
});
|