Added corresponding TODO comments to tests

This commit is contained in:
Michael Li 2024-12-02 10:25:46 -05:00
parent 878f81c273
commit 032f80292b
2 changed files with 4 additions and 2 deletions

View File

@ -471,7 +471,7 @@ describe("Abilities - Parental Bond", () => {
} }
); );
it("should cause Future Sight to hit exactly twice if the user switches out", async () => { it("should not allow Future Sight to hit infinitely many times if the user switches out", async () => {
game.override.enemyLevel(1000) game.override.enemyLevel(1000)
.moveset(Moves.FUTURE_SIGHT); .moveset(Moves.FUTURE_SIGHT);
await game.classicMode.startBattle([ Species.BULBASAUR, Species.CHARMANDER, Species.SQUIRTLE ]); await game.classicMode.startBattle([ Species.BULBASAUR, Species.CHARMANDER, Species.SQUIRTLE ]);
@ -488,6 +488,7 @@ describe("Abilities - Parental Bond", () => {
game.doSwitchPokemon(2); game.doSwitchPokemon(2);
await game.toNextTurn(); await game.toNextTurn();
// TODO: Update hit count to 1 once Future Sight is fixed to not activate abilities if user is off the field
expect(enemyPokemon.damageAndUpdate).toHaveBeenCalledTimes(2); expect(enemyPokemon.damageAndUpdate).toHaveBeenCalledTimes(2);
}); });
}); });

View File

@ -190,7 +190,7 @@ describe("Items - Multi Lens", () => {
expect(enemyPokemon.getHpRatio()).toBeCloseTo(0.25, 5); expect(enemyPokemon.getHpRatio()).toBeCloseTo(0.25, 5);
}); });
it("should cause Future Sight to hit exactly twice if the user switches out", async () => { it("should not allow Future Sight to hit infinitely many times if the user switches out", async () => {
game.override.enemyLevel(1000); game.override.enemyLevel(1000);
await game.classicMode.startBattle([ Species.BULBASAUR, Species.CHARMANDER, Species.SQUIRTLE ]); await game.classicMode.startBattle([ Species.BULBASAUR, Species.CHARMANDER, Species.SQUIRTLE ]);
@ -206,6 +206,7 @@ describe("Items - Multi Lens", () => {
game.doSwitchPokemon(2); game.doSwitchPokemon(2);
await game.toNextTurn(); await game.toNextTurn();
// TODO: Update hit count to 1 once Future Sight is fixed to not activate held items if user is off the field
expect(enemyPokemon.damageAndUpdate).toHaveBeenCalledTimes(2); expect(enemyPokemon.damageAndUpdate).toHaveBeenCalledTimes(2);
}); });
}); });