mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 08:22:16 +02:00
Add tests
This commit is contained in:
parent
78e4a7aded
commit
cf6a238593
@ -209,4 +209,19 @@ describe("Spec - Pokemon", () => {
|
|||||||
expect(types[1]).toBe(PokemonType.DARK);
|
expect(types[1]).toBe(PokemonType.DARK);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it.each([5, 25, 55, 95, 145, 195])(
|
||||||
|
"should set minimum IVs for enemy trainer pokemon based on wave (%i)",
|
||||||
|
async wave => {
|
||||||
|
game.override.startingWave(wave);
|
||||||
|
await game.classicMode.startBattle([Species.FEEBAS]);
|
||||||
|
const { waveIndex } = game.scene.currentBattle;
|
||||||
|
|
||||||
|
for (const pokemon of game.scene.getEnemyParty()) {
|
||||||
|
for (const index in pokemon.ivs) {
|
||||||
|
expect(pokemon.ivs[index]).toBeGreaterThanOrEqual(Math.floor(waveIndex / 10));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user