"use strict";

var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");

var _find = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/find"));

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

var _enzyme = require("enzyme");

var _styles = require("../../../../base/styles");

var _Filter = _interopRequireDefault(require("../Filter"));

var _DefaultFilterContent = _interopRequireDefault(require("../DefaultFilterContent"));

var NAME = 'Filter';
var setFilter = jest.fn();
var setFilterModel = jest.fn();
describe("".concat(NAME), function () {
  it('render and test event', function () {
    var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react.default.createElement(_Filter.default, {
      setFilter: setFilter,
      setFilterModel: setFilterModel,
      filterModel: {
        filter: []
      },
      stopClickEventPropagation: true,
      isFilterActive: true
    }));
    (0, _find.default)(wrapper).call(wrapper, ".".concat(_styles.Classes.filterIcon)).at(0).simulate('click');
    (0, _find.default)(wrapper).call(wrapper, 'div').at(0).simulate('mousedown');
    expect((0, _find.default)(wrapper).call(wrapper, _DefaultFilterContent.default).length).toBe(1);
    wrapper.unmount();
  });
});