import React from 'react'; import {shallow} from 'enzyme'; import toJson from 'enzyme-to-json'; import SplitLayout from 'app/components/splitLayout'; describe('SplitLayout', 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
child #3
); expect(toJson(component)).toMatchSnapshot(); }); it('renders with responsive property', function() { let component = shallow(
child #1
child #2
child #3
); expect(toJson(component)).toMatchSnapshot(); }); it('renders with a separation width', function() { let component = shallow(
child #1
child #2
child #3
); expect(toJson(component)).toMatchSnapshot(); }); });