Fixed tests

This commit is contained in:
thepaperpilot 2023-05-15 07:40:00 -05:00
parent bbe0aaa31e
commit 4e9fb1bc9b

View file

@ -187,19 +187,9 @@ describe("Creating cost requirement", () => {
unref( unref(
createCostRequirement(() => ({ createCostRequirement(() => ({
resource, resource,
cost: Formula.variable(resource).times(0), cost: Formula.variable(resource).times(0.0001),
maxBulkAmount: 10 maxBulkAmount: 10,
})).requirementMet cumulativeCost: false
)
).compare_tolerance(10));
test("Direct sum respected", () =>
expect(
unref(
createCostRequirement(() => ({
resource,
cost: Formula.variable(resource).times(0),
maxBulkAmount: 10
})).requirementMet })).requirementMet
) )
).compare_tolerance(10)); ).compare_tolerance(10));