UNPKG

@financial-times/n-conversion-forms

Version:

Containing jsx components and styles for forms included on Accounts and Acquisition apps (next-signup, next-profile, next-retention, etc).

23 lines (17 loc) 548 B
import { DeliveryAddressType } from './index'; import { expectToRenderCorrectly } from '../test-jest/helpers/expect-to-render-correctly'; expect.extend(expectToRenderCorrectly); describe('DeliveryAddressType', () => { it('renders with default props', () => { const props = {}; expect(DeliveryAddressType).toRenderCorrectly(props); }); it('renders with all props', () => { const props = { fieldId: 'customField', imputName: 'customName', value: 'company', }; expect(DeliveryAddressType).toRenderCorrectly(props); }); });