@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).
17 lines (13 loc) • 428 B
JavaScript
import React from 'react';
import { Section } from './index';
import { expectToRenderCorrectly } from '../test-jest/helpers/expect-to-render-correctly';
const TEST_MESSAGE = <div id="message">Message Text</div>;
expect.extend(expectToRenderCorrectly);
describe('Section', () => {
it('renders with default props', () => {
const props = {
children: TEST_MESSAGE,
};
expect(Section).toRenderCorrectly(props);
});
});