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); }); });