import { describe, it, expect } from 'vitest'; import { createInitialState } from '../src/state'; describe('createInitialState', () => { it('returns correct defaults for monday start', () => { const state = createInitialState('monday'); expect(state).toEqual({ mode: 'year', metric: 'hours', filters: { projectId: null, customerId: null, activityId: null }, weekStart: 'monday', data: null, }); }); it('returns correct defaults for sunday start', () => { const state = createInitialState('sunday'); expect(state).toEqual({ mode: 'year', metric: 'hours', filters: { projectId: null, customerId: null, activityId: null }, weekStart: 'sunday', data: null, }); }); });