Skip to content

Commit 8ebf699

Browse files
committed
test: expand bulk-import in fixtures
1 parent e0f8f2b commit 8ebf699

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/__tests__/fixtures.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { APIHealthResponse, APIProjectDetails, APIGithubOrgDetails, APIChecklistItem, APICheckItem, APIWorkflowItem, APIWorkflowRunItem, APIBulkImportOperationItem } from '../types.js'
1+
import { APIHealthResponse, APIProjectDetails, APIGithubOrgDetails, APIChecklistItem, APICheckItem, APIWorkflowItem, APIOperationCompleted, APIBulkImportOperationItem } from '../types.js'
22

33
export const mockApiHealthResponse: APIHealthResponse = {
44
status: 'ok',
@@ -131,7 +131,7 @@ export const mockAPIWorkflowResponse: APIWorkflowItem[] = [{
131131
schema: null
132132
}]
133133

134-
export const mockAPIWorkflowRunResponse: APIWorkflowRunItem = {
134+
export const mockAPIWorkflowRunResponse: APIOperationCompleted = {
135135
status: 'completed',
136136
started: '2025-06-21T10:05:00.000Z',
137137
finished: '2025-06-21T10:05:02.500Z',
@@ -144,3 +144,11 @@ export const mockAPIBulkImportOperationResponse: APIBulkImportOperationItem[] =
144144
description: 'Test bulk import operation description',
145145
schema: 'test-bulk-import-operation'
146146
}]
147+
148+
export const mockAPIBulkImportOperationRunResponse: APIOperationCompleted = {
149+
status: 'completed',
150+
started: '2025-06-21T10:05:00.000Z',
151+
finished: '2025-06-21T10:05:02.500Z',
152+
completed: '2025-06-21T10:05:02.500Z',
153+
result: { success: true, message: 'Bulk import operation completed successfully' }
154+
}

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export interface APIWorkflowItem {
175175
/**
176176
* Workflow Run Schema
177177
*/
178-
export interface APIWorkflowRunItem {
178+
export interface APIOperationCompleted {
179179
status: string;
180180
started: string;
181181
finished: string;

0 commit comments

Comments
 (0)