Fix requirements tests

This commit is contained in:
thepaperpilot 2023-05-20 08:30:07 -05:00
parent d6c9f95851
commit 63dcad4c12

View file

@ -83,7 +83,7 @@ describe("Creating cost requirement", () => {
cost: 10, cost: 10,
cumulativeCost: false cumulativeCost: false
})); }));
expect(unref(requirement.requirementMet)).toBe(true); expect(unref(requirement.requirementMet)).toBe(1);
}); });
test("Requirement not met when not meeting the cost", () => { test("Requirement not met when not meeting the cost", () => {
@ -92,7 +92,7 @@ describe("Creating cost requirement", () => {
cost: 100, cost: 100,
cumulativeCost: false cumulativeCost: false
})); }));
expect(unref(requirement.requirementMet)).toBe(false); expect(unref(requirement.requirementMet)).toBe(0);
}); });
describe("canMaximize works correctly", () => { describe("canMaximize works correctly", () => {