Skip to content

Commit

Permalink
update hook tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alixlahuec committed Aug 1, 2024
1 parent e8afbf1 commit 35f496d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hooks/useSearch/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe("useSearchFilters", () => {

describe("with fully qualified query", () => {
const query = "roam:true doi:true";
const terms = ["roam:true ", "doi:true", ""];
const terms = ["roam:true ", "doi:true"];

const firstTermCases = [0, 2, 5, 7, 9];
test.each(firstTermCases)(
Expand Down Expand Up @@ -139,7 +139,7 @@ describe("useSearchFilters", () => {
position: cursorPosition,
term: query,
termIndex: 0,
terms: [query, ""],
terms: [query],
suggestions: expectedSuggestions
});
}
Expand All @@ -157,7 +157,7 @@ describe("useSearchFilters", () => {
position: 5,
term: query,
termIndex: 0,
terms: [query, ""],
terms: [query],
suggestions: filters[1].presets
});
});
Expand Down

0 comments on commit 35f496d

Please sign in to comment.