Skip to content

Commit 3275d0e

Browse files
shivamhwpclaude
andcommitted
test(search): keep the one regression row that needs the new classification
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent bf498b3 commit 3275d0e

1 file changed

Lines changed: 9 additions & 16 deletions

File tree

‎packages/shared/src/paletteSearch.test.ts‎

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,15 @@ describe("scoreThreadSearch", () => {
4040
thread("Share auth across worktrees"),
4141
]),
4242
).toEqual(["Share auth across worktrees", "Authentication cleanup", "Fix oauth redirect"]);
43-
for (const [query, prefix, wholeWords] of [
44-
["auth", "Authentication cleanup", "Share auth across worktrees"],
45-
["share auth", "Share authentication cleanup", "Share auth across worktrees"],
46-
["share auth", "Share authentication cleanup", "Auth across worktrees to share"],
47-
] as const) {
48-
expect(
49-
rankTitles(query, [
50-
thread(prefix, {
51-
activityAt: NOW,
52-
opens: { openedAt: NOW, score: 12, picks: [] },
53-
}),
54-
thread(wholeWords, { activityAt: NOW - 90 * DAY }),
55-
]),
56-
`${query}: ${wholeWords}`,
57-
).toEqual([wholeWords, prefix]);
58-
}
43+
expect(
44+
rankTitles("share auth", [
45+
thread("Share authentication cleanup", {
46+
activityAt: NOW,
47+
opens: { openedAt: NOW, score: 12, picks: [] },
48+
}),
49+
thread("Auth across worktrees to share", { activityAt: NOW - 90 * DAY }),
50+
]),
51+
).toEqual(["Auth across worktrees to share", "Share authentication cleanup"]);
5952
});
6053

6154
it("treats camelCase, kebab, path, and digit boundaries as word starts", () => {

0 commit comments

Comments
 (0)