mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-28 11:12:24 +02:00
Changed test for clowning around encounter to look at getTypes() instead of directly accessing customData
This commit is contained in:
parent
77ef5e4084
commit
42e3f20f6a
@ -345,9 +345,9 @@ describe("Clowning Around - Mystery Encounter", () => {
|
||||
scene.getPlayerParty()[2].moveset = [];
|
||||
await runMysteryEncounterToEnd(game, 3);
|
||||
|
||||
const leadTypesAfter = scene.getPlayerParty()[0].customPokemonData?.types;
|
||||
const secondaryTypesAfter = scene.getPlayerParty()[1].customPokemonData?.types;
|
||||
const thirdTypesAfter = scene.getPlayerParty()[2].customPokemonData?.types;
|
||||
const leadTypesAfter = scene.getPlayerParty()[0].getTypes();
|
||||
const secondaryTypesAfter = scene.getPlayerParty()[1].getTypes();
|
||||
const thirdTypesAfter = scene.getPlayerParty()[2].getTypes();
|
||||
|
||||
expect(leadTypesAfter.length).toBe(2);
|
||||
expect(leadTypesAfter[0]).toBe(Type.WATER);
|
||||
|
Loading…
Reference in New Issue
Block a user