From c1064a208f38febbb6c252b2a6b74a8ef4ef918e Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Tue, 15 Apr 2025 09:29:50 -0500 Subject: [PATCH] Fix test broken after rebase --- test/abilities/healer.test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/abilities/healer.test.ts b/test/abilities/healer.test.ts index efe4f651661..35aa74209b4 100644 --- a/test/abilities/healer.test.ts +++ b/test/abilities/healer.test.ts @@ -5,8 +5,9 @@ import { StatusEffect } from "#enums/status-effect"; import GameManager from "#test/testUtils/gameManager"; import Phaser from "phaser"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi, type MockInstance } from "vitest"; -import * as Utils from "#app/utils"; -import { allAbilities, PostTurnResetStatusAbAttr } from "#app/data/ability"; +import { isNullOrUndefined } from "#app/utils"; +import { PostTurnResetStatusAbAttr } from "#app/data/abilities/ability"; +import { allAbilities } from "#app/data/data-lists"; import type Pokemon from "#app/field/pokemon"; describe("Abilities - Healer", () => { @@ -40,7 +41,7 @@ describe("Abilities - Healer", () => { healerAttr = allAbilities[Abilities.HEALER].getAttrs(PostTurnResetStatusAbAttr)[0]; healerAttrSpy = vi .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 () => {