UNPKG

@cnamts/form-builder

Version:

FormBuilder for the French Health Insurance

14 lines (10 loc) 349 B
import { form, formWithNullValues } from './data/forms'; import { getFormValues } from '../'; describe('getFormValues', () => { it('returns all values', () => { expect(getFormValues(form)).toMatchSnapshot(); }); it('returns an empty object when all values are null', () => { expect(getFormValues(formWithNullValues)).toEqual({}); }); });