@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).
28 lines (20 loc) • 784 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);
});
it('renders with subscription finder banner', () => {
const props = {
showProfessionalSubscriptionCheckBanner: true,
professionalSubscriptionCheckRequestUrl: 'https://example.com',
};
expect(RegistrationConfirmation).toRenderCorrectly(props);
});
});