"use strict";

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

var mockStore = (0, _reduxMockStore["default"])();
it('renders correctly with approval', function () {
  var store = mockStore({});
  store.dispatch = jest.fn();
  var tree = (0, _enzyme.render)( /*#__PURE__*/_react["default"].createElement(_reactRedux.Provider, {
    store: store
  }, /*#__PURE__*/_react["default"].createElement(_index["default"], {
    displayApproval: true
  })));
  expect(tree).toMatchSnapshot();
});
it('renders correctly without approval', function () {
  var store = mockStore({});
  store.dispatch = jest.fn();
  var tree = (0, _enzyme.render)( /*#__PURE__*/_react["default"].createElement(_reactRedux.Provider, {
    store: store
  }, /*#__PURE__*/_react["default"].createElement(_index["default"], {
    displayApproval: false
  })));
  expect(tree).toMatchSnapshot();
});