import React from 'react'; import {shallow} from 'enzyme'; import toJson from 'enzyme-to-json'; import SpreadLayout from 'app/components/spreadLayout'; describe('SpreadLayout', function() { it('renders with one child', function() { let component = shallow(
child
); expect(toJson(component)).toMatchSnapshot(); }); it('renders with multiple children', function() { let component = shallow(
child #1
child #2
); expect(toJson(component)).toMatchSnapshot(); }); });