PR feedback
This commit is contained in:
parent
2e0e221010
commit
1e2b20a70f
1 changed files with 3 additions and 6 deletions
|
@ -205,13 +205,10 @@ describe("Sequential Modifiers", () => {
|
||||||
const modifier = createSequentialModifier(() => [
|
const modifier = createSequentialModifier(() => [
|
||||||
createMultiplicativeModifier(() => ({ multiplier: 5, enabled }))
|
createMultiplicativeModifier(() => ({ multiplier: 5, enabled }))
|
||||||
]);
|
]);
|
||||||
expect(modifier.getFormula(Formula.variable(value)).evaluate()).compare_tolerance(
|
const formula = modifier.getFormula(Formula.variable(value));
|
||||||
value.value
|
expect(formula.evaluate()).compare_tolerance(value.value);
|
||||||
);
|
|
||||||
enabled.value = true;
|
enabled.value = true;
|
||||||
expect(modifier.getFormula(Formula.variable(value)).evaluate()).not.compare_tolerance(
|
expect(formula.evaluate()).not.compare_tolerance(value.value);
|
||||||
value.value
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue