Skip to content

Commit d0f12c4

Browse files
committed
Fixed test after rebase
1 parent 33a4774 commit d0f12c4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/vitest/tests/unit/GameInstructions/GameInstructionGenerator.ts.spec.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe("CustomInstructions", () => {
3333
vanillaParameters: "--sleep 8"
3434
};
3535

36-
const actual = await new CustomInstructions(expected).generate(game, profile);
36+
const actual = await new CustomInstructions(() => expected).generate(game, profile);
3737

3838
expect(actual).toStrictEqual(expected);
3939
});
@@ -44,10 +44,12 @@ describe("CustomInstructions", () => {
4444
vanillaParameters: "@profileName"
4545
};
4646

47-
const actual = await new CustomInstructions({
47+
const actualParameters = {
4848
moddedParameters: `--bep "${DynamicGameInstruction.BEPINEX_PRELOADER_PATH}"`,
4949
vanillaParameters: DynamicGameInstruction.PROFILE_NAME
50-
}).generate(game, profile);
50+
};
51+
52+
const actual = await new CustomInstructions(() => actualParameters).generate(game, profile);
5153

5254
expect(actual).toStrictEqual(expected);
5355
});

0 commit comments

Comments
 (0)