Fix some requirements tests

This commit is contained in:
thepaperpilot 2023-02-09 07:41:58 -06:00
parent de0e3f90b8
commit b3d61149c4

View file

@ -151,7 +151,7 @@ describe("Checking maximum levels of requirements met", () => {
cost: Formula.variable(0) cost: Formula.variable(0)
})) }))
]; ];
expect(maxRequirementsMet(requirements)).toBe(0); expect(maxRequirementsMet(requirements)).compare_tolerance(0);
}); });
test("Returns correct number of requirements met", () => { test("Returns correct number of requirements met", () => {
@ -162,7 +162,7 @@ describe("Checking maximum levels of requirements met", () => {
cost: Formula.variable(0) cost: Formula.variable(0)
})) }))
]; ];
expect(maxRequirementsMet(requirements)).toBe(10); expect(maxRequirementsMet(requirements)).compare_tolerance(10);
}); });
}); });