mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-19 22:09:27 +02:00
Added corresponding TODO comments to tests
This commit is contained in:
parent
878f81c273
commit
032f80292b
@ -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);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -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);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user