mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-10 09:29:25 +02:00
Fixed test file syntax err
This commit is contained in:
parent
9ee0bfb84b
commit
d6c77e0afa
@ -1,12 +1,12 @@
|
|||||||
import { allMoves } from "#app/data/data-lists";
|
import { allMoves } from "#data/data-lists";
|
||||||
import { StatusEffectAttr } from "#app/data/moves/move";
|
|
||||||
import { toReadableString } from "#app/utils/common";
|
|
||||||
import { AbilityId } from "#enums/ability-id";
|
import { AbilityId } from "#enums/ability-id";
|
||||||
import { MoveId } from "#enums/move-id";
|
import { MoveId } from "#enums/move-id";
|
||||||
import { MoveResult } from "#enums/move-result";
|
import { MoveResult } from "#enums/move-result";
|
||||||
import { SpeciesId } from "#enums/species-id";
|
import { SpeciesId } from "#enums/species-id";
|
||||||
import { StatusEffect } from "#enums/status-effect";
|
import { StatusEffect } from "#enums/status-effect";
|
||||||
|
import { StatusEffectAttr } from "#moves/move";
|
||||||
import { GameManager } from "#test/test-utils/game-manager";
|
import { GameManager } from "#test/test-utils/game-manager";
|
||||||
|
import { toTitleCase } from "#utils/strings";
|
||||||
import Phaser from "phaser";
|
import Phaser from "phaser";
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ describe.each<{ name: string; ability: AbilityId; status: StatusEffect }>([
|
|||||||
vi.spyOn(allMoves[MoveId.SPORE], "attrs", "get").mockReturnValue([new StatusEffectAttr(status, false)]);
|
vi.spyOn(allMoves[MoveId.SPORE], "attrs", "get").mockReturnValue([new StatusEffectAttr(status, false)]);
|
||||||
});
|
});
|
||||||
|
|
||||||
const statusStr = toReadableString(StatusEffect[status]);
|
const statusStr = toTitleCase(StatusEffect[status]);
|
||||||
|
|
||||||
it(`should prevent application of ${statusStr} without failing damaging moves`, async () => {
|
it(`should prevent application of ${statusStr} without failing damaging moves`, async () => {
|
||||||
await game.classicMode.startBattle([SpeciesId.FEEBAS]);
|
await game.classicMode.startBattle([SpeciesId.FEEBAS]);
|
||||||
|
Loading…
Reference in New Issue
Block a user