'use strict';

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

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

var _reactTestRenderer2 = _interopRequireDefault(_reactTestRenderer);

var _Item = require('./Item.component');

var _Item2 = _interopRequireDefault(_Item);

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

var selectedItem = {
	label: 'toto',
	checked: true
};

describe('Item', function () {
	it('should display a selected item', function () {
		// given
		var props = {
			id: '0-item',
			item: selectedItem
		};

		// when
		var wrapper = _reactTestRenderer2.default.create(_react2.default.createElement(_Item2.default, props)).toJSON();

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