Skip to content

Commit 2f4e37e

Browse files
committed
test: include compliance checks in fixtures
1 parent cb70088 commit 2f4e37e

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/__tests__/fixtures.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { APIHealthResponse, APIProjectDetails, APIGithubOrgDetails, APIChecklistItem } from '../types.js'
1+
import { APIHealthResponse, APIProjectDetails, APIGithubOrgDetails, APIChecklistItem, APICheckItem } from '../types.js'
22

33
export const mockApiHealthResponse: APIHealthResponse = {
44
status: 'ok',
@@ -104,3 +104,20 @@ export const mockAPIChecklistResponse: APIChecklistItem[] = [{
104104
created_at: new Date().toISOString(),
105105
updated_at: new Date().toISOString()
106106
}]
107+
108+
export const mockAPICheckResponse: APICheckItem[] = [{
109+
id: 53,
110+
title: 'Refresh dependencies with annual releases',
111+
description: 'Ensure dependencies are refreshed through a new release at least once annually',
112+
default_section_number: '5',
113+
default_section_name: 'vulnerability management',
114+
code_name: 'annualDependencyRefresh',
115+
default_priority_group: 'P14',
116+
is_c_scrm: true,
117+
implementation_status: 'completed',
118+
implementation_type: 'manual',
119+
implementation_details_reference: 'https://github.com/OpenPathfinder/visionBoard/issues/112',
120+
details_url: 'https://openpathfinder.com/docs/checks/annualDependencyRefresh',
121+
created_at: '2025-02-21T18:53:00.485Z',
122+
updated_at: '2025-02-21T18:53:00.485Z'
123+
}]

0 commit comments

Comments
 (0)