mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-27 18:24:11 +00:00
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)
This commit is contained in:
@@ -16,10 +16,17 @@ import { EventType } from '@/services/customerEventsService'
|
||||
|
||||
import UsageLogsTable from './UsageLogsTable.vue'
|
||||
|
||||
interface MockEvent {
|
||||
event_id: string
|
||||
event_type: string
|
||||
params: Record<string, unknown>
|
||||
createdAt: string
|
||||
}
|
||||
|
||||
type ComponentInstance = InstanceType<typeof UsageLogsTable> & {
|
||||
loading: boolean
|
||||
error: string | null
|
||||
events: any[]
|
||||
events: MockEvent[]
|
||||
pagination: {
|
||||
page: number
|
||||
limit: number
|
||||
|
||||
Reference in New Issue
Block a user