Skip to content

Commit 47f0e5e

Browse files
fix: use valid FilterCategory values in test mock
The test was using 'tag' which doesn't exist in FilterCategory. Updated to use all required categories with proper types. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 894624e commit 47f0e5e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

app/src/utils/filters.test.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,15 @@ describe('getSearchResults', () => {
1616
seaborn: 8,
1717
plotly: 7,
1818
},
19-
tag: {
20-
basic: 15,
21-
advanced: 10,
22-
},
19+
plot: { scatter: 8, heatmap: 4, histogram: 2, bar: 6 },
20+
data: {},
21+
dom: {},
22+
feat: { basic: 15, advanced: 10 },
23+
dep: {},
24+
tech: {},
25+
pat: {},
26+
prep: {},
27+
style: {},
2328
};
2429

2530
const emptyFilters: ActiveFilters = [];

0 commit comments

Comments
 (0)