mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-25 01:41:44 +00:00
Fixed tests
This commit is contained in:
parent
bbe0aaa31e
commit
4e9fb1bc9b
1 changed files with 3 additions and 13 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue