Fix some requirements tests

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

View file

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