From 1e73ac4053f660946fc8a43b030d7a3cc6e803c2 Mon Sep 17 00:00:00 2001 From: geido Date: Tue, 21 Sep 2021 15:40:33 +0000 Subject: [PATCH] Fix tests --- .../src/explore/components/controls/BoundsControl.jsx | 4 ++-- .../TimeSeriesColumnControl/TimeSeriesColumnControl.test.tsx | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/superset-frontend/src/explore/components/controls/BoundsControl.jsx b/superset-frontend/src/explore/components/controls/BoundsControl.jsx index 39a0d560bc333..a9849113dea0b 100644 --- a/superset-frontend/src/explore/components/controls/BoundsControl.jsx +++ b/superset-frontend/src/explore/components/controls/BoundsControl.jsx @@ -20,7 +20,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { InputNumber } from 'src/common/components'; import { t, styled } from '@superset-ui/core'; -import { isEqual, debounce } from 'lodash'; +import { isEqual } from 'lodash'; import ControlHeader from 'src/explore/components/ControlHeader'; const propTypes = { @@ -56,7 +56,7 @@ export default class BoundsControl extends React.Component { Number.isNaN(this.props.value[1]) ? '' : props.value[1], ], }; - this.onChange = debounce(this.onChange.bind(this), 300); + this.onChange = this.onChange.bind(this); this.onMinChange = this.onMinChange.bind(this); this.onMaxChange = this.onMaxChange.bind(this); this.update = this.update.bind(this); diff --git a/superset-frontend/src/explore/components/controls/TimeSeriesColumnControl/TimeSeriesColumnControl.test.tsx b/superset-frontend/src/explore/components/controls/TimeSeriesColumnControl/TimeSeriesColumnControl.test.tsx index 5336be94d1546..2d92774d2db82 100644 --- a/superset-frontend/src/explore/components/controls/TimeSeriesColumnControl/TimeSeriesColumnControl.test.tsx +++ b/superset-frontend/src/explore/components/controls/TimeSeriesColumnControl/TimeSeriesColumnControl.test.tsx @@ -21,8 +21,6 @@ import { render, screen } from 'spec/helpers/testing-library'; import userEvent from '@testing-library/user-event'; import TimeSeriesColumnControl from '.'; -jest.mock('lodash/debounce', () => jest.fn(fn => fn)); - test('renders with default props', () => { render(); expect(screen.getByText('Time series columns')).toBeInTheDocument();