From 4a2725223115c0fa9b7317083205dbe3af405f0e Mon Sep 17 00:00:00 2001 From: RedstonewolfX <108761527+RedstonewolfX@users.noreply.github.com> Date: Wed, 18 Sep 2024 14:58:24 -0400 Subject: [PATCH] Delete a skipped test, and skip a nonfunctional one The test I added a skip statement to is just there as a second possible method of making these last tests --- src/test/game-mode.test.ts | 41 ------------------------------- src/test/ui/transfer-item.test.ts | 2 +- 2 files changed, 1 insertion(+), 42 deletions(-) diff --git a/src/test/game-mode.test.ts b/src/test/game-mode.test.ts index 75e76ac3b9d..11994a102af 100644 --- a/src/test/game-mode.test.ts +++ b/src/test/game-mode.test.ts @@ -2,9 +2,6 @@ import { GameMode, GameModes, getGameMode } from "#app/game-mode"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import * as Utils from "../utils"; import GameManager from "./utils/gameManager"; -import { getPartyLuckValue } from "#app/modifier/modifier-type"; -import { Species } from "#app/enums/species"; -import { getPokemonSpecies } from "#app/data/pokemon-species"; describe("game-mode", () => { let phaserGame: Phaser.Game; @@ -46,42 +43,4 @@ describe("game-mode", () => { expect(classicGameMode.isWaveTrainer(19, arena)).toBeFalsy(); }); }); - describe.skip("Luck Check", async () => { - beforeAll(() => { - phaserGame = new Phaser.Game({ - type: Phaser.HEADLESS, - }); - }); - - afterEach(() => { - game.phaseInterceptor.restoreOg(); - }); - - beforeEach(() => { - game = new GameManager(phaserGame); - }); - - it("applies luck in Classic", () => { - game.override - .shinyLevel(true, 2); - game.classicMode.startBattle([Species.PICHU]); - game.scene.addPlayerPokemon(getPokemonSpecies(Species.PICHU), 5, undefined, undefined, undefined, true, 2); - const party = game.scene.getParty(); - const luck = Phaser.Math.Clamp(party.map(p => p.isAllowedInBattle() ? p.getLuck() : 0) - .reduce((total: integer, value: integer) => total += value, 0), 0, 14); - expect(luck).toBeGreaterThan(0); - expect(getPartyLuckValue(party)).toBeGreaterThan(0); - }); - it("does not apply luck in Daily Runs", () => { - game.override - .shinyLevel(true, 2); - game.dailyMode.startBattle(); - game.scene.addPlayerPokemon(getPokemonSpecies(Species.PICHU), 5, undefined, undefined, undefined, true, 2); - const party = game.scene.getParty(); - const luck = Phaser.Math.Clamp(party.map(p => p.isAllowedInBattle() ? p.getLuck() : 0) - .reduce((total: integer, value: integer) => total += value, 0), 0, 14); - expect(luck).toBeGreaterThan(0); - expect(getPartyLuckValue(party)).toBe(0); - }); - }); }); diff --git a/src/test/ui/transfer-item.test.ts b/src/test/ui/transfer-item.test.ts index f952cf4c59c..7b5fa7f9171 100644 --- a/src/test/ui/transfer-item.test.ts +++ b/src/test/ui/transfer-item.test.ts @@ -96,7 +96,7 @@ describe("UI - Transfer Items", () => { }, 20000); }); -describe("Test", () => { +describe.skip("Backup Test", () => { let phaserGame: Phaser.Game; let game: GameManager;