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