mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-09 00:49:27 +02:00
Fix Unit Tests
This commit is contained in:
parent
a6752c2062
commit
53395969cb
@ -174,7 +174,7 @@ describe("Berries Abound - Mystery Encounter", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should start battle if fastest pokemon is slower than boss below wave 50", async () => {
|
it("should start battle if fastest pokemon is slower than boss below wave 50", async () => {
|
||||||
game.override.startingWave(41);
|
game.override.startingWave(42);
|
||||||
const encounterTextSpy = vi.spyOn(EncounterDialogueUtils, "showEncounterText");
|
const encounterTextSpy = vi.spyOn(EncounterDialogueUtils, "showEncounterText");
|
||||||
await game.runToMysteryEncounter(MysteryEncounterType.BERRIES_ABOUND, defaultParty);
|
await game.runToMysteryEncounter(MysteryEncounterType.BERRIES_ABOUND, defaultParty);
|
||||||
|
|
||||||
|
@ -253,7 +253,7 @@ describe("Bug-Type Superfan - Mystery Encounter", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should start battle against the Bug-Type Superfan with wave 70 party template", async () => {
|
it("should start battle against the Bug-Type Superfan with wave 70 party template", async () => {
|
||||||
game.override.startingWave(62);
|
game.override.startingWave(63);
|
||||||
await game.runToMysteryEncounter(MysteryEncounterType.BUG_TYPE_SUPERFAN, defaultParty);
|
await game.runToMysteryEncounter(MysteryEncounterType.BUG_TYPE_SUPERFAN, defaultParty);
|
||||||
await runMysteryEncounterToEnd(game, 1, undefined, true);
|
await runMysteryEncounterToEnd(game, 1, undefined, true);
|
||||||
|
|
||||||
@ -268,7 +268,7 @@ describe("Bug-Type Superfan - Mystery Encounter", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should start battle against the Bug-Type Superfan with wave 100 party template", async () => {
|
it("should start battle against the Bug-Type Superfan with wave 100 party template", async () => {
|
||||||
game.override.startingWave(82);
|
game.override.startingWave(83);
|
||||||
await game.runToMysteryEncounter(MysteryEncounterType.BUG_TYPE_SUPERFAN, defaultParty);
|
await game.runToMysteryEncounter(MysteryEncounterType.BUG_TYPE_SUPERFAN, defaultParty);
|
||||||
await runMysteryEncounterToEnd(game, 1, undefined, true);
|
await runMysteryEncounterToEnd(game, 1, undefined, true);
|
||||||
|
|
||||||
@ -284,7 +284,7 @@ describe("Bug-Type Superfan - Mystery Encounter", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should start battle against the Bug-Type Superfan with wave 120 party template", async () => {
|
it("should start battle against the Bug-Type Superfan with wave 120 party template", async () => {
|
||||||
game.override.startingWave(112);
|
game.override.startingWave(113);
|
||||||
await game.runToMysteryEncounter(MysteryEncounterType.BUG_TYPE_SUPERFAN, defaultParty);
|
await game.runToMysteryEncounter(MysteryEncounterType.BUG_TYPE_SUPERFAN, defaultParty);
|
||||||
await runMysteryEncounterToEnd(game, 1, undefined, true);
|
await runMysteryEncounterToEnd(game, 1, undefined, true);
|
||||||
|
|
||||||
@ -302,7 +302,7 @@ describe("Bug-Type Superfan - Mystery Encounter", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should start battle against the Bug-Type Superfan with wave 140 party template", async () => {
|
it("should start battle against the Bug-Type Superfan with wave 140 party template", async () => {
|
||||||
game.override.startingWave(132);
|
game.override.startingWave(133);
|
||||||
await game.runToMysteryEncounter(MysteryEncounterType.BUG_TYPE_SUPERFAN, defaultParty);
|
await game.runToMysteryEncounter(MysteryEncounterType.BUG_TYPE_SUPERFAN, defaultParty);
|
||||||
await runMysteryEncounterToEnd(game, 1, undefined, true);
|
await runMysteryEncounterToEnd(game, 1, undefined, true);
|
||||||
|
|
||||||
@ -320,7 +320,7 @@ describe("Bug-Type Superfan - Mystery Encounter", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should start battle against the Bug-Type Superfan with wave 160 party template", async () => {
|
it("should start battle against the Bug-Type Superfan with wave 160 party template", async () => {
|
||||||
game.override.startingWave(152);
|
game.override.startingWave(153);
|
||||||
await game.runToMysteryEncounter(MysteryEncounterType.BUG_TYPE_SUPERFAN, defaultParty);
|
await game.runToMysteryEncounter(MysteryEncounterType.BUG_TYPE_SUPERFAN, defaultParty);
|
||||||
await runMysteryEncounterToEnd(game, 1, undefined, true);
|
await runMysteryEncounterToEnd(game, 1, undefined, true);
|
||||||
|
|
||||||
@ -338,7 +338,7 @@ describe("Bug-Type Superfan - Mystery Encounter", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should start battle against the Bug-Type Superfan with wave 180 party template", async () => {
|
it("should start battle against the Bug-Type Superfan with wave 180 party template", async () => {
|
||||||
game.override.startingWave(172);
|
game.override.startingWave(173);
|
||||||
await game.runToMysteryEncounter(MysteryEncounterType.BUG_TYPE_SUPERFAN, defaultParty);
|
await game.runToMysteryEncounter(MysteryEncounterType.BUG_TYPE_SUPERFAN, defaultParty);
|
||||||
await runMysteryEncounterToEnd(game, 1, undefined, true);
|
await runMysteryEncounterToEnd(game, 1, undefined, true);
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ describe("Mystery Encounters", () => {
|
|||||||
|
|
||||||
await game.runToMysteryEncounter();
|
await game.runToMysteryEncounter();
|
||||||
|
|
||||||
expect(scene.currentBattle?.mysteryEncounter?.encounterType).not.toBe(MysteryEncounterType.MYSTERIOUS_CHALLENGERS);
|
expect(scene.currentBattle.mysteryEncounter).toBeUndefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("Encounters should not run below wave 10", async () => {
|
it("Encounters should not run below wave 10", async () => {
|
||||||
@ -50,7 +50,7 @@ describe("Mystery Encounters", () => {
|
|||||||
|
|
||||||
await game.runToMysteryEncounter();
|
await game.runToMysteryEncounter();
|
||||||
|
|
||||||
expect(scene.currentBattle?.mysteryEncounter?.encounterType).not.toBe(MysteryEncounterType.MYSTERIOUS_CHALLENGERS);
|
expect(scene.currentBattle.mysteryEncounter).toBeUndefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("Encounters should not run above wave 180", async () => {
|
it("Encounters should not run above wave 180", async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user