Unified · Split
| @@ -1,7 +1,6 @@ | ||
| 1 | 1 | import { describe, expect, it } from "vite-plus/test"; |
| 2 | 2 | |
| 3 | 3 | import { |
| 4 | − compareRankedSearchResults, | |
| 5 | 4 | insertRankedSearchResult, |
| 6 | 5 | normalizeSearchQuery, |
| 7 | 6 | scoreQueryMatch, |
| @@ -90,6 +89,5 @@ describe("insertRankedSearchResult", () => { · 82 unmodified lines | ||
| 90 | 89 | insertRankedSearchResult(ranked, { item: "c", score: 30, tieBreaker: "c" }, 2); |
| 91 | 90 | |
| 92 | 91 | expect(ranked.map((entry) => entry.item)).toEqual(["a", "b"]); |
| 93 | − expect(compareRankedSearchResults(ranked[0]!, ranked[1]!)).toBeLessThan(0); | |
| 94 | 92 | }); |
| 95 | 93 | }); |
| @@ -135,7 +135,7 @@ export function scoreQueryMatch(input: { · 134 unmodified lines | ||
| 135 | 135 | return null; |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | −export function compareRankedSearchResults<T>( | |
| 138 | +function compareRankedSearchResults<T>( | |
| 139 | 139 | left: RankedSearchResult<T>, |
| 140 | 140 | right: RankedSearchResult<T>, |
| 141 | 141 | ): number { |