Skip to content

Commit

Permalink
Merged in r2-3003-fix-js-lint-issues (pull request #6924)
Browse files Browse the repository at this point in the history
R2-3003 Fix linter issues
  • Loading branch information
aespinoza-quoin committed Sep 18, 2024
2 parents c068c6e + 8930233 commit 6c1c925
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/javascript/libs/expressions/operators/avg.unit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import avgOperator from "./avg";
describe("avgOperator", () => {
const operator = avgOperator(["a", "b", "c"]);
const decimalPlaceOperator = avgOperator(["a", "b", "c"], { decimalPlaces: 3 });
const roundOperator = avgOperator(["a", "b", "c"], {decimalPlaces: 0});
const roundOperator = avgOperator(["a", "b", "c"], { decimalPlaces: 0 });

it("should return avg", () => {
expect(operator.evaluate({ a: 3, b: 4, c: 2 })).to.deep.equals(3);
Expand All @@ -28,6 +28,6 @@ describe("avgOperator", () => {
expect(decimalPlaceOperator.evaluate({ a: 1, b: 4 })).to.deep.equals(2.5);
});
it("rounds correctly if decimalPlaces are 0", () => {
expect(roundOperator.evaluate({a: 1, b: 1, c:3})).to.deep.equals(2);
})
expect(roundOperator.evaluate({ a: 1, b: 1, c: 3 })).to.deep.equals(2);
});
});

0 comments on commit 6c1c925

Please sign in to comment.