From ca4fe3fd69b81f5146761604831ff1f783209091 Mon Sep 17 00:00:00 2001 From: Johnpaul Date: Wed, 21 Jan 2026 02:45:44 +0100 Subject: [PATCH] test: remove any type from UsageLogsTable test ComponentInstance - Replace `events: any[]` with properly typed `MockEvent[]` - Define MockEvent interface matching the test data structure - Improve type safety for event testing Part of Phase 2 - Quick wins (1 instance removed) --- .../dialog/content/setting/UsageLogsTable.test.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/dialog/content/setting/UsageLogsTable.test.ts b/src/components/dialog/content/setting/UsageLogsTable.test.ts index b986646686..34c45e4f80 100644 --- a/src/components/dialog/content/setting/UsageLogsTable.test.ts +++ b/src/components/dialog/content/setting/UsageLogsTable.test.ts @@ -16,10 +16,17 @@ import { EventType } from '@/services/customerEventsService' import UsageLogsTable from './UsageLogsTable.vue' +interface MockEvent { + event_id: string + event_type: string + params: Record + createdAt: string +} + type ComponentInstance = InstanceType & { loading: boolean error: string | null - events: any[] + events: MockEvent[] pagination: { page: number limit: number