Skip to content

Commit

Permalink
add jest for section:... filter in client tool search
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed Apr 22, 2024
1 parent 30ccce9 commit 73bb46c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/src/components/Panels/utilities.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@ describe("test helpers in tool searching utilities", () => {
tools: Object.values(tempToolsList.tools),
panel: tempToolPanel.default,
},
{
// section is searchable if provided "section:"
q: "section:Lift-Over",
expectedResults: ["liftOver1"],
keys: { description: 1, name: 2 },
tools: toolsList,
panel: toolsListInPanel,
},
// if at least couple words match, return results
{
q: "filter datasets",
Expand Down

0 comments on commit 73bb46c

Please sign in to comment.