mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-08 17:32:18 +02:00
[Test] Fix incorrect reverse mapping in overridesHelper.ts
log message
https://github.com/pagefaultgames/pokerogue/pull/6068
This commit is contained in:
parent
bff8cffe14
commit
5f8e665a1e
@ -2,7 +2,6 @@
|
|||||||
import type { NewArenaEvent } from "#app/events/battle-scene";
|
import type { NewArenaEvent } from "#app/events/battle-scene";
|
||||||
/** biome-ignore-end lint/correctness/noUnusedImports: tsdoc imports */
|
/** biome-ignore-end lint/correctness/noUnusedImports: tsdoc imports */
|
||||||
|
|
||||||
import { Weather } from "#app/data/weather";
|
|
||||||
import type { ModifierOverride } from "#app/modifier/modifier-type";
|
import type { ModifierOverride } from "#app/modifier/modifier-type";
|
||||||
import type { BattleStyle, RandomTrainerOverride } from "#app/overrides";
|
import type { BattleStyle, RandomTrainerOverride } from "#app/overrides";
|
||||||
import Overrides, { defaultOverrides } 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 { SpeciesId } from "#enums/species-id";
|
||||||
import { StatusEffect } from "#enums/status-effect";
|
import { StatusEffect } from "#enums/status-effect";
|
||||||
import type { Unlockables } from "#enums/unlockables";
|
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 { GameManagerHelper } from "#test/testUtils/helpers/gameManagerHelper";
|
||||||
import { expect, vi } from "vitest";
|
import { expect, vi } from "vitest";
|
||||||
|
|
||||||
@ -356,7 +355,7 @@ export class OverridesHelper extends GameManagerHelper {
|
|||||||
*/
|
*/
|
||||||
public weather(type: WeatherType): this {
|
public weather(type: WeatherType): this {
|
||||||
vi.spyOn(Overrides, "WEATHER_OVERRIDE", "get").mockReturnValue(type);
|
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;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user