@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).
19 lines (13 loc) • 521 B
JavaScript
import { RegistrationConfirmation } from './index';
import { expectToRenderCorrectly } from '../test-jest/helpers/expect-to-render-correctly';
expect.extend(expectToRenderCorrectly);
describe('RegistrationConfirmation', () => {
it('renders with default props', () => {
const props = {};
expect(RegistrationConfirmation).toRenderCorrectly(props);
});
it('renders with a custom email', () => {
const props = { email: 'test@example.com' };
expect(RegistrationConfirmation).toRenderCorrectly(props);
});
});