Skip to content

Commit 3000620

Browse files
Copilothotlong
andcommitted
fix(console): prefix unused props params with underscore in test mocks (TS6133)
Fix TypeScript noUnusedParameters errors in ListToolbarActions.test.tsx lines 34 and 38 where mock component props were declared but not used. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com> Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/d01cb686-bd58-4299-91af-8240dabcdc4c
1 parent bc6cd4a commit 3000620

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/console/src/__tests__/ListToolbarActions.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ vi.mock('@object-ui/plugin-grid', () => ({
3131
}));
3232

3333
vi.mock('@object-ui/plugin-kanban', () => ({
34-
ObjectKanban: (props: any) => <div data-testid="object-kanban">Kanban View</div>
34+
ObjectKanban: (_props: any) => <div data-testid="object-kanban">Kanban View</div>
3535
}));
3636

3737
vi.mock('@object-ui/plugin-calendar', () => ({
38-
ObjectCalendar: (props: any) => <div data-testid="object-calendar">Calendar View</div>
38+
ObjectCalendar: (_props: any) => <div data-testid="object-calendar">Calendar View</div>
3939
}));
4040

4141
vi.mock('@object-ui/plugin-list', () => ({

0 commit comments

Comments
 (0)