Fix tests checking status instead of tag

This commit is contained in:
Dean 2025-02-24 09:49:04 -08:00
parent 6d9d4768ff
commit 90461d1d37
2 changed files with 4 additions and 4 deletions

View File

@ -40,13 +40,13 @@ describe("Abilities - Oblivious", () => {
await game.classicMode.startBattle([ Species.FEEBAS ]);
const enemy = game.scene.getEnemyPokemon();
enemy?.addTag(BattlerTagType.TAUNT); // sourceID needs to be defined
enemy?.addTag(BattlerTagType.TAUNT);
expect(enemy?.getTag(BattlerTagType.TAUNT)).toBeTruthy();
game.move.select(Moves.SKILL_SWAP);
await game.phaseInterceptor.to("BerryPhase");
expect(enemy?.status).toBeFalsy();
expect(enemy?.getTag(BattlerTagType.TAUNT)).toBeFalsy();
});
it("should remove infatuation when gained", async () => {
@ -64,6 +64,6 @@ describe("Abilities - Oblivious", () => {
game.move.select(Moves.SKILL_SWAP);
await game.phaseInterceptor.to("BerryPhase");
expect(enemy?.status).toBeFalsy();
expect(enemy?.getTag(BattlerTagType.INFATUATED)).toBeFalsy();
});
});

View File

@ -46,6 +46,6 @@ describe("Abilities - Own Tempo", () => {
game.move.select(Moves.SKILL_SWAP);
await game.phaseInterceptor.to("BerryPhase");
expect(enemy?.status).toBeFalsy();
expect(enemy?.getTag(BattlerTagType.CONFUSED)).toBeFalsy();
});
});