UNPKG

@financial-times/n-conversion-forms

Version:

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

36 lines (27 loc) 737 B
import React from 'react'; import { ErrorPage } from './index'; import { expectToRenderCorrectly } from '../test-jest/helpers/expect-to-render-correctly'; const CHILDREN = <div id="children">Children</div>; expect.extend(expectToRenderCorrectly); describe('ErrorPage', () => { it('renders with default props', () => { const props = { children: CHILDREN, }; expect(ErrorPage).toRenderCorrectly(props); }); it('renders with header', () => { const props = { children: CHILDREN, header: 'HEADER', }; expect(ErrorPage).toRenderCorrectly(props); }); it('renders with message', () => { const props = { children: CHILDREN, message: 'MESSAGE', }; expect(ErrorPage).toRenderCorrectly(props); }); });