[Test] Fix incorrect reverse mapping in overridesHelper.ts log message

https://github.com/pagefaultgames/pokerogue/pull/6068
This commit is contained in:
Bertie690 2025-07-06 21:00:33 +02:00 committed by GitHub
parent bff8cffe14
commit 5f8e665a1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,6 @@
import type { NewArenaEvent } from "#app/events/battle-scene";
/** biome-ignore-end lint/correctness/noUnusedImports: tsdoc imports */
import { Weather } from "#app/data/weather";
import type { ModifierOverride } from "#app/modifier/modifier-type";
import type { BattleStyle, RandomTrainerOverride } from "#app/overrides";
import Overrides, { defaultOverrides } from "#app/overrides";
@ -18,7 +17,7 @@ import { Nature } from "#enums/nature";
import { SpeciesId } from "#enums/species-id";
import { StatusEffect } from "#enums/status-effect";
import type { Unlockables } from "#enums/unlockables";
import type { WeatherType } from "#enums/weather-type";
import { WeatherType } from "#enums/weather-type";
import { GameManagerHelper } from "#test/testUtils/helpers/gameManagerHelper";
import { expect, vi } from "vitest";
@ -356,7 +355,7 @@ export class OverridesHelper extends GameManagerHelper {
*/
public weather(type: WeatherType): this {
vi.spyOn(Overrides, "WEATHER_OVERRIDE", "get").mockReturnValue(type);
this.log(`Weather set to ${Weather[type]} (=${type})!`);
this.log(`Weather set to ${WeatherType[type]} (=${type})!`);
return this;
}