forked from profectus/Profectus
Fix requirements tests
This commit is contained in:
parent
d6c9f95851
commit
63dcad4c12
1 changed files with 2 additions and 2 deletions
|
@ -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", () => {
|
||||||
|
|
Loading…
Reference in a new issue