Fix broken tests

This commit is contained in:
Sirz Benjie 2025-04-14 21:44:52 -05:00
parent b341ff8527
commit 00fa13f5ad
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E
2 changed files with 3 additions and 5 deletions

View File

@ -117,10 +117,8 @@ describe("A Trainer's Test - Mystery Encounter", () => {
i18next.t("trainerNames:marley"),
i18next.t("trainerNames:mira"),
i18next.t("trainerNames:riley"),
]
.map(name => name.toLowerCase())
.includes(scene.currentBattle.trainer!.config.name),
).toBeTruthy();
].map(name => name.toLowerCase()),
).toContain(scene.currentBattle.trainer!.config.name.toLowerCase());
expect(enemyField[0]).toBeDefined();
});

View File

@ -1,5 +1,5 @@
import { expect, describe, it, beforeAll } from "vitest";
import { randomString, padInt } from "./utils/common";
import { randomString, padInt } from "#app/utils/common";
import Phaser from "phaser";