import React from 'react';
import { render } from '@testing-library/react';
import 'jest-styled-components';
import { Grommet } from '../../Grommet';
import { Paragraph } from '..';
test('Paragraph renders', () => {
const { container } = render(
,
);
expect(container.firstChild).toMatchSnapshot();
});
test('Paragraph size renders', () => {
const { container } = render(
,
);
expect(container.firstChild).toMatchSnapshot();
});
test('Paragraph margin renders', () => {
const { container } = render(
,
);
expect(container.firstChild).toMatchSnapshot();
});
test('Paragraph textAlign renders', () => {
const { container } = render(
,
);
expect(container.firstChild).toMatchSnapshot();
});
test('Paragraph maxLines renders', () => {
const { container } = render(
,
);
expect(container.firstChild).toMatchSnapshot();
});
test('Paragraph dangerouslySetInnerHTML renders', () => {
const { container } = render(
,
);
expect(container.firstChild).toMatchSnapshot();
});