'use strict';

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

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

var _reactTestRenderer2 = _interopRequireDefault(_reactTestRenderer);

var _index = require('./index');

var _index2 = _interopRequireDefault(_index);

var _Button = require('../Button');

var _Button2 = _interopRequireDefault(_Button);

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

// eslint-disable-line import/no-extraneous-dependencies

test('UiStates renders correctly', function () {
  var tree = _reactTestRenderer2.default.create(_react2.default.createElement(
    'div',
    null,
    _react2.default.createElement(
      _index2.default,
      {
        loading: false,
        data: { value: 'hello' },
        Component: _Button2.default,
        label: 'hello'
      },
      function () {
        return _react2.default.createElement(
          _Button2.default,
          null,
          ' hello '
        );
      }
    )
  )).toJSON();
  expect(tree).toMatchSnapshot();
});