@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).
39 lines (29 loc) • 720 B
JavaScript
import { Debug } from './index';
import { expectToRenderCorrectly } from '../test-jest/helpers/expect-to-render-correctly';
expect.extend(expectToRenderCorrectly);
describe('Debug', () => {
it('renders with default props', () => {
const props = {};
expect(Debug).toRenderCorrectly(props);
});
it('renders with isTest', () => {
const props = {
isTest: true,
};
expect(Debug).toRenderCorrectly(props);
});
it('renders with showHelpers', () => {
const props = {
showHelpers: true,
};
expect(Debug).toRenderCorrectly(props);
});
it('renders with links', () => {
const props = {
links: {
test: 'https://www.ft.com',
},
};
expect(Debug).toRenderCorrectly(props);
});
});