mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-24 09:21:45 +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(
|
||||
createCostRequirement(() => ({
|
||||
resource,
|
||||
cost: Formula.variable(resource).times(0),
|
||||
maxBulkAmount: 10
|
||||
})).requirementMet
|
||||
)
|
||||
).compare_tolerance(10));
|
||||
|
||||
test("Direct sum respected", () =>
|
||||
expect(
|
||||
unref(
|
||||
createCostRequirement(() => ({
|
||||
resource,
|
||||
cost: Formula.variable(resource).times(0),
|
||||
maxBulkAmount: 10
|
||||
cost: Formula.variable(resource).times(0.0001),
|
||||
maxBulkAmount: 10,
|
||||
cumulativeCost: false
|
||||
})).requirementMet
|
||||
)
|
||||
).compare_tolerance(10));
|
||||
|
|
Loading…
Reference in a new issue