mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-26 02:02:20 +02:00
addressed secret power testcase not working with other status moves
This commit is contained in:
parent
986675e537
commit
25394ad817
@ -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}
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user