1 | import * as React from 'react';
|
2 | import render from '../../_utils/tests/render';
|
3 | import LayoutSet from '../LayoutSet';
|
4 | import { Card } from '../../index';
|
5 |
|
6 | it('renders correctly for a basic field', () => {
|
7 | const { container } = render(
|
8 | <LayoutSet>
|
9 | <Card title="Hello">World</Card>
|
10 | <Card title="World">
|
11 | <LayoutSet spacing="major-2">
|
12 | <Card border>Yes queen</Card>
|
13 | <Card border>Yes queen</Card>
|
14 | </LayoutSet>
|
15 | </Card>
|
16 | <LayoutSet isHorizontal>
|
17 | <Card title="This is me">World</Card>
|
18 | <Card title="This is me">World</Card>
|
19 | </LayoutSet>
|
20 | </LayoutSet>
|
21 | );
|
22 | expect(container.firstChild).toMatchSnapshot();
|
23 | });
|