UNPKG

937 BTypeScriptView Raw
1import * as React from 'react';
2import render from '../../_utils/tests/render';
3import PageContent from '../PageContent';
4
5it('renders correctly for a basic PageContent', () => {
6 const { container } = render(<PageContent>test</PageContent>);
7 expect(container.firstChild).toMatchSnapshot();
8});
9
10it('renders correctly for a PageContent with breakpoint', () => {
11 const { container } = render(<PageContent breakpoint="desktop">test</PageContent>);
12 expect(container.firstChild).toMatchSnapshot();
13});
14
15it('renders correctly for a PageContent with a fluid container', () => {
16 const { container } = render(<PageContent isFluid>test</PageContent>);
17 expect(container.firstChild).toMatchSnapshot();
18});
19
20it('renders correctly for a PageContent with wrapper props', () => {
21 const { container } = render(<PageContent wrapperProps={{ backgroundColor: 'red' }}>test</PageContent>);
22 expect(container.firstChild).toMatchSnapshot();
23});