"use strict";

var _react = _interopRequireDefault(require("react"));
var _enzyme = require("enzyme");
var _index = _interopRequireDefault(require("./index"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
/* eslint-env jest */

describe('Screens/Configurator/Components/FullScreenView', function () {
  it('renders correctly', function () {
    var tree = (0, _enzyme.render)( /*#__PURE__*/_react["default"].createElement(_index["default"], null));
    expect(tree).toMatchSnapshot();
  });
  it('the rendered component contains the custom-css-views and custom-css-preview-button classes', function () {
    var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
      showDesignViewList: true,
      showPreviewButton: true,
      ThumbnailComponent: function ThumbnailComponent() {
        return null;
      }
    }));
    expect(wrapper.find('div.custom-css-views')).toHaveLength(1);
    expect(wrapper.find('button.custom-css-preview-button')).toHaveLength(1);
  });
});