import { describe, it, expect } from 'vitest'; import { hasProgress, initial, WizardState } from './herregistratie.machine'; const editing = initial as Extract; describe('herregistratie hasProgress', () => { it('is false for a fresh form', () => { expect(hasProgress(editing)).toBe(false); }); it('is true once a field is filled or the user advances', () => { expect(hasProgress({ ...editing, draft: { uren: '40', jaren: '', punten: '' } })).toBe(true); expect(hasProgress({ ...editing, step: 2 })).toBe(true); }); });