Skip to content

Commit e9d9342

Browse files
authored
Merge pull request #71 from ModusCreateOrg/NO-TICKET-TINY-FIXES
feat: Rename date field to createdAt in report mock data for consistency
2 parents 5798215 + 4928252 commit e9d9342

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

frontend/src/pages/Home/components/ReportItem/__tests__/ReportItem.test.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,8 @@ describe('ReportItem', () => {
5454
id: '1',
5555
title: 'Blood Test',
5656
category: ReportCategory.GENERAL,
57-
date: '2025-01-27',
57+
createdAt: '2025-01-27',
5858
status: ReportStatus.UNREAD,
59-
doctor: 'Dr. Smith',
60-
facility: 'City Hospital'
6159
};
6260

6361
const mockReadReport: MedicalReport = {

frontend/src/pages/Upload/__tests__/UploadPage.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ vi.mock('common/components/Upload/UploadModal', () => {
4040
id: '123',
4141
title: 'Test Report',
4242
category: ReportCategory.GENERAL,
43-
date: '2023-01-01',
43+
createdAt: '2023-01-01',
4444
status: ReportStatus.UNREAD,
4545
};
4646

0 commit comments

Comments
 (0)