fix(test): fix 16 pre-existing type errors in page spec fixtures #10

Merged
marcel merged 1 commits from fix/spec-user-type into main 2026-03-19 13:18:45 +01:00

View File

@@ -16,6 +16,7 @@ vi.stubGlobal(
// ─── Test data ────────────────────────────────────────────────────────────────
const emptyData = {
user: undefined,
filters: { q: '', from: '', to: '', senderId: '', receiverId: '', tags: [] },
documents: [],
initialValues: { senderName: '', receiverName: '' },
@@ -26,13 +27,15 @@ const makeDoc = (overrides = {}) => ({
id: '1',
title: 'Testbrief',
originalFilename: 'testbrief.pdf',
status: 'UPLOADED',
status: 'UPLOADED' as const,
documentDate: '2024-03-15',
location: 'Berlin',
sender: { id: 'p1', firstName: 'Max', lastName: 'Mustermann' },
receivers: [{ id: 'p2', firstName: 'Anna', lastName: 'Musterfrau' }],
tags: [{ name: 'Familie' }],
tags: [{ id: 't1', name: 'Familie' }],
filePath: '/files/testbrief.pdf',
createdAt: '2024-03-15T10:00:00Z',
updatedAt: '2024-03-15T10:00:00Z',
...overrides
});