Update src/test/utils/overridesHelper.ts

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
This commit is contained in:
ImperialSympathizer 2024-07-19 17:24:52 -04:00 committed by GitHub
parent 1e7c3b575f
commit 6a697b193e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -87,7 +87,7 @@ export class OverridesHelper {
* @param seed the seed to set
* @returns spy instance
*/
seed(seed: string): MockInstance {
seed(seed: string) {
const spy = vi.spyOn(this.game.scene, "resetSeed").mockImplementation(() => {
this.game.scene.waveSeed = seed;
Phaser.Math.RND.sow([seed]);