import React from 'react';
import { render } from '@testing-library/react';
import 'jest-styled-components';
import { Grommet } from '../../Grommet';
import { Page } from '..';
import { Paragraph } from '../../Paragraph';
import { PageContent } from '../../PageContent';
describe('Page', () => {
test('default kind', () => {
const { asFragment } = render(
content
,
);
expect(asFragment()).toMatchSnapshot();
});
test('narrow', () => {
const { asFragment } = render(
content
,
);
expect(asFragment()).toMatchSnapshot();
});
test('full', () => {
const { asFragment } = render(
content
,
);
expect(asFragment()).toMatchSnapshot();
});
test('background fill', () => {
const { asFragment } = render(
content
,
);
expect(asFragment()).toMatchSnapshot();
});
test('custom theme', () => {
const customTheme = {
page: {
customKind: {
alignSelf: 'start',
width: {
min: '200px',
max: '500px',
},
},
},
};
const { asFragment } = render(
content
,
);
expect(asFragment()).toMatchSnapshot();
});
});