addressed secret power testcase not working with other status moves

This commit is contained in:
Jacky Chen 2025-02-15 18:03:01 -05:00
parent 986675e537
commit 25394ad817
2 changed files with 7 additions and 3 deletions

View File

@ -32,7 +32,11 @@ import { WeatherType } from "#enums/weather-type";
* } * }
* ``` * ```
*/ */
const overrides = {} satisfies Partial<InstanceType<typeof DefaultOverrides>>; const overrides = {
// ABILITY_OVERRIDE: Abilities.SERENE_GRACE,
// MOVESET_OVERRIDE: [Moves.SPLASH],
// OPP_MOVESET_OVERRIDE: [Moves.SPLASH]
} satisfies Partial<InstanceType<typeof DefaultOverrides>>;
/** /**
* If you need to add Overrides values for local testing do that inside {@linkcode overrides} * If you need to add Overrides values for local testing do that inside {@linkcode overrides}

View File

@ -89,10 +89,10 @@ describe("Moves - Secret Power", () => {
await game.phaseInterceptor.to("BerryPhase", false); await game.phaseInterceptor.to("BerryPhase", false);
expect(sereneGraceAttr.apply).toHaveBeenCalledOnce(); expect(sereneGraceAttr.apply).toHaveBeenCalled();
expect(sereneGraceAttr.apply).toHaveLastReturnedWith(true); expect(sereneGraceAttr.apply).toHaveLastReturnedWith(true);
expect(rainbowEffect.apply).toHaveBeenCalledTimes(0); expect(rainbowEffect.apply).toHaveBeenCalled();
} }
); );
}); });