import _findInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/find";
import React from 'react';
import { mount } from 'enzyme';
import { Classes } from '../../../../base/styles';
import Filter from '../Filter';
import DefaultFilterContent from '../DefaultFilterContent';
var NAME = 'Filter';
var setFilter = jest.fn();
var setFilterModel = jest.fn();
describe("".concat(NAME), function () {
  it('render and test event', function () {
    var wrapper = mount( /*#__PURE__*/React.createElement(Filter, {
      setFilter: setFilter,
      setFilterModel: setFilterModel,
      filterModel: {
        filter: []
      },
      stopClickEventPropagation: true,
      isFilterActive: true
    }));

    _findInstanceProperty(wrapper).call(wrapper, ".".concat(Classes.filterIcon)).at(0).simulate('click');

    _findInstanceProperty(wrapper).call(wrapper, 'div').at(0).simulate('mousedown');

    expect(_findInstanceProperty(wrapper).call(wrapper, DefaultFilterContent).length).toBe(1);
    wrapper.unmount();
  });
});