import React, { Fragment } from 'react'; import { create } from 'react-test-renderer'; import { shallowJSON } from '../../src'; import { TestWrapper } from './TestWrapper'; describe('Fragment', () => { it('matches snapshot', () => { expect( shallowJSON( create( <>
).toTree() ) ).toMatchSnapshot(); }); it('matches snapshot', () => { expect( shallowJSON( create(
).toTree() ) ).toMatchSnapshot(); }); it('matches snapshot as children', () => { expect( shallowJSON( create( <>
).toTree() ) ).toMatchSnapshot(); }); it('matches snapshot as children', () => { expect( shallowJSON( create(
).toTree() ) ).toMatchSnapshot(); }); });