"use strict";

var _react = _interopRequireDefault(require("react"));

var _server = _interopRequireDefault(require("react-dom/server"));

var _reactTestRenderer = _interopRequireDefault(require("react-test-renderer"));

var _jsBeautify = _interopRequireDefault(require("js-beautify"));

var _snapshotDefault = _interopRequireDefault(require("../__examples__/snapshot-default"));

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

/* eslint-env jest */
test('MenuPicklist Default DOM Snapshot', function () {
  var domTree = _reactTestRenderer.default.create(_react.default.createElement(_snapshotDefault.default, null)).toJSON();

  expect(domTree).toMatchSnapshot();
});
test('MenuPicklist Default HTML Snapshot', function () {
  var domTree = String(_jsBeautify.default.html(_server.default.renderToStaticMarkup(_react.default.createElement(_snapshotDefault.default, null)), {}));
  expect(domTree).toMatchSnapshot();
});
test("MenuPicklist\n\terrorText\n\tDOM Snapshot", function () {
  var domTree = _reactTestRenderer.default.create(_react.default.createElement(_snapshotDefault.default, {
    errorText: "This field is required.",
    required: true
  })).toJSON();

  expect(domTree).toMatchSnapshot();
});