mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-15 12:52:20 +02:00
Fix test broken after rebase
This commit is contained in:
parent
9f2906699b
commit
c1064a208f
@ -5,8 +5,9 @@ import { StatusEffect } from "#enums/status-effect";
|
|||||||
import GameManager from "#test/testUtils/gameManager";
|
import GameManager from "#test/testUtils/gameManager";
|
||||||
import Phaser from "phaser";
|
import Phaser from "phaser";
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi, type MockInstance } from "vitest";
|
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi, type MockInstance } from "vitest";
|
||||||
import * as Utils from "#app/utils";
|
import { isNullOrUndefined } from "#app/utils";
|
||||||
import { allAbilities, PostTurnResetStatusAbAttr } from "#app/data/ability";
|
import { PostTurnResetStatusAbAttr } from "#app/data/abilities/ability";
|
||||||
|
import { allAbilities } from "#app/data/data-lists";
|
||||||
import type Pokemon from "#app/field/pokemon";
|
import type Pokemon from "#app/field/pokemon";
|
||||||
|
|
||||||
describe("Abilities - Healer", () => {
|
describe("Abilities - Healer", () => {
|
||||||
@ -40,7 +41,7 @@ describe("Abilities - Healer", () => {
|
|||||||
healerAttr = allAbilities[Abilities.HEALER].getAttrs(PostTurnResetStatusAbAttr)[0];
|
healerAttr = allAbilities[Abilities.HEALER].getAttrs(PostTurnResetStatusAbAttr)[0];
|
||||||
healerAttrSpy = vi
|
healerAttrSpy = vi
|
||||||
.spyOn(healerAttr, "getCondition")
|
.spyOn(healerAttr, "getCondition")
|
||||||
.mockReturnValue((pokemon: Pokemon) => !Utils.isNullOrUndefined(pokemon.getAlly()));
|
.mockReturnValue((pokemon: Pokemon) => !isNullOrUndefined(pokemon.getAlly()));
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should not queue a message phase for healing if the ally has fainted", async () => {
|
it("should not queue a message phase for healing if the ally has fainted", async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user