From 63dcad4c1225883f846311c025480fecd1882f09 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sat, 20 May 2023 08:30:07 -0500 Subject: [PATCH] Fix requirements tests --- tests/game/requirements.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/game/requirements.test.ts b/tests/game/requirements.test.ts index f6143ca..8ee3c43 100644 --- a/tests/game/requirements.test.ts +++ b/tests/game/requirements.test.ts @@ -83,7 +83,7 @@ describe("Creating cost requirement", () => { cost: 10, cumulativeCost: false })); - expect(unref(requirement.requirementMet)).toBe(true); + expect(unref(requirement.requirementMet)).toBe(1); }); test("Requirement not met when not meeting the cost", () => { @@ -92,7 +92,7 @@ describe("Creating cost requirement", () => { cost: 100, cumulativeCost: false })); - expect(unref(requirement.requirementMet)).toBe(false); + expect(unref(requirement.requirementMet)).toBe(0); }); describe("canMaximize works correctly", () => {