mirror of
https://github.com/apache/superset.git
synced 2026-07-29 01:52:26 +00:00
test(drill-detail): use Partial<TableControlsProps> instead of any
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -17,13 +17,15 @@
|
||||
* under the License.
|
||||
*/
|
||||
import { render, screen, userEvent } from 'spec/helpers/testing-library';
|
||||
import TableControls from './DrillDetailTableControls';
|
||||
import TableControls, {
|
||||
TableControlsProps,
|
||||
} from './DrillDetailTableControls';
|
||||
|
||||
const setFilters = jest.fn();
|
||||
const onReload = jest.fn();
|
||||
const onDownloadCSV = jest.fn();
|
||||
const onDownloadXLSX = jest.fn();
|
||||
const setup = (overrides: Record<string, any> = {}) => {
|
||||
const setup = (overrides: Partial<TableControlsProps> = {}) => {
|
||||
const props = {
|
||||
filters: [],
|
||||
setFilters,
|
||||
|
||||
Reference in New Issue
Block a user