style: replace inclusive/exclusive on DateFilterControl with </≤ (#10420)

* feat: improve filter control tooltips

* add styles

* break out utils into own file

* lint

* add tests

* styled component now working

* lint

* add license headers

* replace shallow with mount due to withTheme

Co-authored-by: Evan Rusackas <evan@preset.io>
This commit is contained in:
Ville Brofeldt
2020-07-31 20:06:04 +03:00
committed by GitHub
parent 9eab29aeaa
commit a43ee22f11
4 changed files with 135 additions and 42 deletions

View File

@@ -19,7 +19,7 @@
/* eslint-disable no-unused-expressions */
import React from 'react';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import { mount } from 'enzyme';
import { Button, Label } from 'react-bootstrap';
import DateFilterControl from 'src/explore/components/controls/DateFilterControl';
@@ -37,7 +37,7 @@ describe('DateFilterControl', () => {
let wrapper;
beforeEach(() => {
wrapper = shallow(<DateFilterControl {...defaultProps} />);
wrapper = mount(<DateFilterControl {...defaultProps} />);
});
it('renders a ControlHeader', () => {