From b89c4cde09fae44a9ca15915668a08a0aa01ac16 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sun, 5 Feb 2023 00:25:48 -0600 Subject: [PATCH] Fix error about persistent value that isn't part of a layer --- tests/game/formulas.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/game/formulas.test.ts b/tests/game/formulas.test.ts index eed9d42..217b980 100644 --- a/tests/game/formulas.test.ts +++ b/tests/game/formulas.test.ts @@ -979,7 +979,7 @@ describe("Custom Formulas", () => { describe("Buy Max", () => { let resource: Resource; beforeAll(() => { - resource = createResource(10); + resource = createResource(ref(10)); }); describe("With spending", () => { test("Throws on formula with non-invertible integral", () => {