UNPKG

690 BTypeScriptView Raw
1import * as React from 'react';
2import render from '../../_utils/tests/render';
3import LayoutSet from '../LayoutSet';
4import { Card } from '../../index';
5
6it('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});