From b3d61149c4f8bcd5edc9694e3c8fefd4f8dbaea4 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Thu, 9 Feb 2023 07:41:58 -0600 Subject: [PATCH] Fix some 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 3a26dbc..73d539f 100644 --- a/tests/game/requirements.test.ts +++ b/tests/game/requirements.test.ts @@ -151,7 +151,7 @@ describe("Checking maximum levels of requirements met", () => { cost: Formula.variable(0) })) ]; - expect(maxRequirementsMet(requirements)).toBe(0); + expect(maxRequirementsMet(requirements)).compare_tolerance(0); }); test("Returns correct number of requirements met", () => { @@ -162,7 +162,7 @@ describe("Checking maximum levels of requirements met", () => { cost: Formula.variable(0) })) ]; - expect(maxRequirementsMet(requirements)).toBe(10); + expect(maxRequirementsMet(requirements)).compare_tolerance(10); }); });