import React from 'react'; import { create } from 'react-test-renderer'; import { shallowJSON } from '../../src'; import { Empty, Button, MyComponent, ListItem, List, TableHead, TableHeadCell, Table, TableRow, TableFoot, TableCell, TableBody, } from './FunctionComponent'; describe('Empty', () => { it('matches snapshot', () => { expect(shallowJSON(create().toTree())).toMatchSnapshot(); }); }); describe('MyComponent', () => { it('matches snapshot', () => { expect(shallowJSON(create().toTree())).toMatchSnapshot(); }); it('matches snapshot 2 level deep', () => { expect( shallowJSON(create().toTree(), { depth: 2 }) ).toMatchSnapshot(); }); }); describe('Button', () => { it('matches snapshot', () => { expect( shallowJSON(create(