'use strict';

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _reactTestRenderer = require('react-test-renderer');

var _reactTestRenderer2 = _interopRequireDefault(_reactTestRenderer);

var _TwoColumns = require('./TwoColumns.component');

var _TwoColumns2 = _interopRequireDefault(_TwoColumns);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

describe('TwoColumns', function () {
	it('should render two columns', function () {
		// given
		var one = _react2.default.createElement(
			'div',
			null,
			'Hello world'
		);

		// when
		var wrapper = _reactTestRenderer2.default.create(_react2.default.createElement(
			_TwoColumns2.default,
			{ one: one, style: { display: 'flex' } },
			_react2.default.createElement(
				'span',
				null,
				'children'
			)
		)).toJSON();

		// then
		expect(wrapper).toMatchSnapshot();
	});
});