Initial commit
This commit is contained in:
Vendored
+76
@@ -0,0 +1,76 @@
|
||||
/**
|
||||
* Shared test fixtures. Import from here rather than duplicating inline.
|
||||
*/
|
||||
|
||||
import type { Child, ParentalLeaveFetch, PersonalData, VacationDays, Workspace } from '@/types'
|
||||
|
||||
export const MOCK_WORKSPACE: Workspace = {
|
||||
id: 'ws-1',
|
||||
name: 'Familjen Testsson',
|
||||
planningGoal: 'balanced',
|
||||
createdAt: '2026-01-01T00:00:00',
|
||||
}
|
||||
|
||||
export const MOCK_PARENT_A: PersonalData = {
|
||||
uuid: 'pd-a',
|
||||
workspaceId: 'ws-1',
|
||||
name: 'Förälder A',
|
||||
salaryType: 'monthly',
|
||||
employmentStatus: 'employed',
|
||||
createdAt: '2026-01-01T00:00:00',
|
||||
}
|
||||
|
||||
export const MOCK_PARENT_B: PersonalData = {
|
||||
uuid: 'pd-b',
|
||||
workspaceId: 'ws-1',
|
||||
name: 'Förälder B',
|
||||
salaryType: 'monthly',
|
||||
employmentStatus: 'employed',
|
||||
createdAt: '2026-01-01T00:00:00',
|
||||
}
|
||||
|
||||
export const MOCK_CHILD: Child = {
|
||||
id: 'child-1',
|
||||
workspaceId: 'ws-1',
|
||||
name: 'Barnet',
|
||||
birthDate: '2025-06-01',
|
||||
preschoolStartDate: null,
|
||||
createdAt: '2026-01-01T00:00:00',
|
||||
}
|
||||
|
||||
export const MOCK_VACATION_DAYS: VacationDays = {
|
||||
id: 'vd-1',
|
||||
personalDataUuid: 'pd-a',
|
||||
workspaceId: 'ws-1',
|
||||
year: 2026,
|
||||
totalDays: 25,
|
||||
savedDaysIn: 0,
|
||||
createdAt: '2026-01-01T00:00:00',
|
||||
updatedAt: '2026-01-01T00:00:00',
|
||||
}
|
||||
|
||||
export const MOCK_PARENTAL_LEAVE: ParentalLeaveFetch = {
|
||||
id: 'plf-1',
|
||||
personalDataUuid: 'pd-a',
|
||||
workspaceId: 'ws-1',
|
||||
childId: 'child-1',
|
||||
source: 'manual',
|
||||
fetchedAt: '2026-05-01T10:00:00',
|
||||
totalDays: 240,
|
||||
daysUsed: 80,
|
||||
daysLeft: 160,
|
||||
reservedDaysTotal: 90,
|
||||
reservedDaysLeft: 70,
|
||||
transferableDaysLeft: 50,
|
||||
dubbeldagarLeft: 55,
|
||||
tierData: {
|
||||
sjukpenningTotal: 390,
|
||||
sjukpenningUsed: 80,
|
||||
sjukpenningLeft: 310,
|
||||
lagstaNivaTotal: 90,
|
||||
lagstaNivaUsed: 0,
|
||||
lagstaNivaLeft: 90,
|
||||
},
|
||||
createdAt: '2026-05-01T10:00:00',
|
||||
updatedAt: '2026-05-01T10:00:00',
|
||||
}
|
||||
Reference in New Issue
Block a user