Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions app/src/lib/__tests__/dashboard/neodash-converter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ describe("convertNeoDash", () => {
query: "MATCH (n) WHERE n.name = $neodash_userName RETURN n",
}),
);
expect(result.layout.pages[0].widgets[0].query).toBe(
// Referencing $param_userName triggers a Filters page being prepended
// (auto-generated parameter-select for the undefined param). Original at index 1.
expect(result.layout.pages[1].widgets[0].query).toBe(
"MATCH (n) WHERE n.name = $param_userName RETURN n",
);
});
Expand Down Expand Up @@ -438,7 +440,8 @@ describe("convertNeoDash", () => {
"MATCH (n) WHERE n.name = $neodash_name AND n.age > $neodash_minAge RETURN n",
}),
);
expect(result.layout.pages[0].widgets[0].query).toBe(
// Two referenced params → Filters page prepended; original page at index 1.
expect(result.layout.pages[1].widgets[0].query).toBe(
"MATCH (n) WHERE n.name = $param_name AND n.age > $param_minAge RETURN n",
);
});
Expand Down
Loading
Loading