diff --git a/frontend/test/metabase/lib/expressions/__support__/shared.js b/frontend/test/metabase/lib/expressions/__support__/shared.js index f8d4478dc931ef8936f5589f1b6863c3f7b8096c..829e23aa1d9fe0cf3833bb459be1a811bdd935c6 100644 --- a/frontend/test/metabase/lib/expressions/__support__/shared.js +++ b/frontend/test/metabase/lib/expressions/__support__/shared.js @@ -73,16 +73,16 @@ const expression = [ ]; const aggregation = [ - ["Count", ["count"], "aggregation with no arguments"], + ["Count()", ["count()"], "aggregation with no arguments"], ["Sum([Total])", ["sum", total], "aggregation with one argument"], - ["1 - Count", ["-", 1, ["count"]], "aggregation with math outside"], + ["1 - Count()", ["-", 1, ["count"]], "aggregation with math outside"], [ "Sum([Total] * 2)", ["sum", ["*", total, 2]], "aggregation with math inside", ], [ - "1 - Sum([Total] * 2) / Count", + "1 - Sum([Total] * 2) / Count()", ["-", 1, ["/", ["sum", ["*", total, 2]], ["count"]]], "aggregation with math inside and outside", ], @@ -117,14 +117,14 @@ const aggregation = [ // should not compile: ["Count([Total])", undefined, "invalid count arguments"], ["SumIf([Total] > 50, [Total])", undefined, "invalid sum-where arguments"], - ["Count + Share((", undefined, "invalid share"], + ["Count() + Share((", undefined, "invalid share"], ]; // Skipped for now: temporary, known regression /* eslint-disable no-unused-vars */ const nested_aggregation = [ // should not compile: - ["Sum(Count)", undefined, "aggregation nested inside another aggregation"], + ["Sum(Count())", undefined, "aggregation nested inside another aggregation"], ]; /* eslint-enable no-unused-vars */