added more automated tests

This commit is contained in:
geeil-han 2024-11-17 03:03:34 +01:00
parent 6401ad83eb
commit 6fc1b47a07

View File

@ -77,7 +77,6 @@ describe("Moves - Spectral Thief", () => {
const dmgBefore = enemy.getAttackDamage(player, moveToCheck, false, false, false, false).damage; const dmgBefore = enemy.getAttackDamage(player, moveToCheck, false, false, false, false).damage;
enemy.setStatStage(Stat.ATK, 6); enemy.setStatStage(Stat.ATK, 6);
player.setStatStage(Stat.ATK, 0); player.setStatStage(Stat.ATK, 0);
game.move.select(Moves.SPECTRAL_THIEF); game.move.select(Moves.SPECTRAL_THIEF);
@ -95,7 +94,6 @@ describe("Moves - Spectral Thief", () => {
const enemy = game.scene.getEnemyPokemon()!; const enemy = game.scene.getEnemyPokemon()!;
enemy.setStatStage(Stat.ATK, 6); enemy.setStatStage(Stat.ATK, 6);
player.setStatStage(Stat.ATK, 0); player.setStatStage(Stat.ATK, 0);
game.move.select(Moves.SPECTRAL_THIEF); game.move.select(Moves.SPECTRAL_THIEF);
@ -114,7 +112,6 @@ describe("Moves - Spectral Thief", () => {
const enemy = game.scene.getEnemyPokemon()!; const enemy = game.scene.getEnemyPokemon()!;
enemy.setStatStage(Stat.ATK, 3); enemy.setStatStage(Stat.ATK, 3);
player.setStatStage(Stat.ATK, 0); player.setStatStage(Stat.ATK, 0);
game.move.select(Moves.SPECTRAL_THIEF); game.move.select(Moves.SPECTRAL_THIEF);
@ -133,7 +130,6 @@ describe("Moves - Spectral Thief", () => {
const enemy = game.scene.getEnemyPokemon()!; const enemy = game.scene.getEnemyPokemon()!;
enemy.setStatStage(Stat.ATK, 3); enemy.setStatStage(Stat.ATK, 3);
player.setStatStage(Stat.ATK, 0); player.setStatStage(Stat.ATK, 0);
game.move.select(Moves.SPECTRAL_THIEF); game.move.select(Moves.SPECTRAL_THIEF);
@ -152,7 +148,6 @@ describe("Moves - Spectral Thief", () => {
const enemy = game.scene.getEnemyPokemon()!; const enemy = game.scene.getEnemyPokemon()!;
enemy.setStatStage(Stat.ATK, 3); enemy.setStatStage(Stat.ATK, 3);
player.setStatStage(Stat.ATK, 0); player.setStatStage(Stat.ATK, 0);
game.move.select(Moves.SPECTRAL_THIEF); game.move.select(Moves.SPECTRAL_THIEF);
@ -171,7 +166,6 @@ describe("Moves - Spectral Thief", () => {
const enemy = game.scene.getEnemyPokemon()!; const enemy = game.scene.getEnemyPokemon()!;
enemy.setStatStage(Stat.ATK, 3); enemy.setStatStage(Stat.ATK, 3);
player.setStatStage(Stat.ATK, 0); player.setStatStage(Stat.ATK, 0);
game.move.select(Moves.SPECTRAL_THIEF); game.move.select(Moves.SPECTRAL_THIEF);
@ -190,7 +184,6 @@ describe("Moves - Spectral Thief", () => {
const enemy = game.scene.getEnemyPokemon()!; const enemy = game.scene.getEnemyPokemon()!;
enemy.setStatStage(Stat.ATK, 3); enemy.setStatStage(Stat.ATK, 3);
player.setStatStage(Stat.ATK, 0); player.setStatStage(Stat.ATK, 0);
game.move.select(Moves.SPECTRAL_THIEF); game.move.select(Moves.SPECTRAL_THIEF);
@ -199,6 +192,7 @@ describe("Moves - Spectral Thief", () => {
expect(player.getStatStage(Stat.ATK)).toEqual(3); expect(player.getStatStage(Stat.ATK)).toEqual(3);
expect(enemy.getStatStage(Stat.ATK)).toEqual(0); expect(enemy.getStatStage(Stat.ATK)).toEqual(0);
//-1 Damage since Subsitute damages enemy for 1
expect(enemy.hp).toBeLessThan(enemy.getMaxHp() - 1); expect(enemy.hp).toBeLessThan(enemy.getMaxHp() - 1);
}); });
@ -211,7 +205,6 @@ describe("Moves - Spectral Thief", () => {
const enemy = game.scene.getEnemyPokemon()!; const enemy = game.scene.getEnemyPokemon()!;
enemy.setStatStage(Stat.ATK, 3); enemy.setStatStage(Stat.ATK, 3);
player.setStatStage(Stat.ATK, 0); player.setStatStage(Stat.ATK, 0);
game.move.select(Moves.SPECTRAL_THIEF); game.move.select(Moves.SPECTRAL_THIEF);