Skip to content
Snippets Groups Projects
Commit 7b7429ea authored by Callum Herries's avatar Callum Herries
Browse files

Fix fe unit tests

parent b625ff15
No related branches found
No related tags found
No related merge requests found
......@@ -208,9 +208,9 @@ describe("metabase/lib/expression/suggest", () => {
it("should suggest partial matches after an aggregation", () => {
expect(suggest({ source: "average(c", ...aggregationOpts })).toEqual([
// FIXME: the next four should not appear
{ type: "aggregations", text: "Count " },
{ type: "aggregations", text: "Count(" },
{ type: "aggregations", text: "CountIf(" },
{ type: "aggregations", text: "CumulativeCount " },
{ type: "aggregations", text: "CumulativeCount(" },
{ type: "aggregations", text: "CumulativeSum(" },
{ type: "fields", text: "[C] " },
{ type: "fields", text: "[count] " },
......@@ -224,9 +224,9 @@ describe("metabase/lib/expression/suggest", () => {
it("should suggest partial matches in aggregation", () => {
expect(suggest({ source: "1 + C", ...aggregationOpts })).toEqual([
{ type: "aggregations", text: "Count " },
{ type: "aggregations", text: "Count(" },
{ type: "aggregations", text: "CountIf(" },
{ type: "aggregations", text: "CumulativeCount " },
{ type: "aggregations", text: "CumulativeCount(" },
{ type: "aggregations", text: "CumulativeSum(" },
{ type: "fields", text: "[C] " },
{ type: "fields", text: "[count] " },
......@@ -259,7 +259,7 @@ describe("metabase/lib/expression/suggest", () => {
startRule: "aggregation",
}),
).toEqual([
{ type: "aggregations", text: "Count " },
{ type: "aggregations", text: "Count(" },
{ type: "aggregations", text: "CountIf(" },
]);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment