PR feedback
All checks were successful
Run Tests / test (pull_request) Successful in 2m4s

This commit is contained in:
thepaperpilot 2024-02-20 15:10:59 +00:00
parent 4f7a5abdc9
commit 22581ba2a1

View file

@ -205,13 +205,10 @@ describe("Sequential Modifiers", () => {
const modifier = createSequentialModifier(() => [
createMultiplicativeModifier(() => ({ multiplier: 5, enabled }))
]);
expect(modifier.getFormula(Formula.variable(value)).evaluate()).compare_tolerance(
value.value
);
const formula = modifier.getFormula(Formula.variable(value));
expect(formula.evaluate()).compare_tolerance(value.value);
enabled.value = true;
expect(modifier.getFormula(Formula.variable(value)).evaluate()).not.compare_tolerance(
value.value
);
expect(formula.evaluate()).not.compare_tolerance(value.value);
});
});