Removed i18next.init() from status_effect.test.ts

This commit is contained in:
Michael Li 2025-01-10 17:04:46 -05:00 committed by Sirz Benjie
parent 7bf7cb527a
commit c66be1997e
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -13,17 +13,12 @@ import { Species } from "#enums/species";
import { StatusEffect } from "#enums/status-effect"; import { StatusEffect } from "#enums/status-effect";
import GameManager from "#test/utils/gameManager"; import GameManager from "#test/utils/gameManager";
import { mockI18next } from "#test/utils/testUtils"; import { mockI18next } from "#test/utils/testUtils";
import i18next from "i18next";
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
const pokemonName = "PKM"; const pokemonName = "PKM";
const sourceText = "SOURCE"; const sourceText = "SOURCE";
describe("Status Effect Messages", () => { describe("Status Effect Messages", () => {
beforeAll(async () => {
await i18next.init();
});
describe("NONE", () => { describe("NONE", () => {
const statusEffect = StatusEffect.NONE; const statusEffect = StatusEffect.NONE;
@ -31,7 +26,6 @@ describe("Status Effect Messages", () => {
mockI18next(); mockI18next();
const text = getStatusEffectObtainText(statusEffect, pokemonName); const text = getStatusEffectObtainText(statusEffect, pokemonName);
console.log("text:", text);
expect(text).toBe(""); expect(text).toBe("");
const emptySourceText = getStatusEffectObtainText(statusEffect, pokemonName, ""); const emptySourceText = getStatusEffectObtainText(statusEffect, pokemonName, "");