mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
fix: clean up prop type errors in jest tests (#11120)
This commit is contained in:
committed by
GitHub
parent
662fb43350
commit
d95b7c2a73
@@ -67,6 +67,7 @@ describe('DashboardBuilder', () => {
|
||||
colorScheme: undefined,
|
||||
handleComponentDrop() {},
|
||||
setDirectPathToChild: sinon.spy(),
|
||||
setMountedTab() {},
|
||||
};
|
||||
|
||||
function setup(overrideProps, useProvider = false, store = mockStore) {
|
||||
|
||||
@@ -32,6 +32,13 @@ describe('FilterIndicatorGroup', () => {
|
||||
colorCode: 'badge-1',
|
||||
name: column,
|
||||
values: ['a', 'b', 'c'],
|
||||
isFilterFieldActive: true,
|
||||
chartId: 1,
|
||||
componentId: 'foo',
|
||||
directPathToFilter: ['foo'],
|
||||
isDateFilter: false,
|
||||
isInstantFilter: false,
|
||||
label: 'foo',
|
||||
},
|
||||
],
|
||||
setDirectPathToChild: () => {},
|
||||
|
||||
@@ -32,6 +32,11 @@ describe('FilterIndicator', () => {
|
||||
name: column,
|
||||
label: column,
|
||||
values: ['a', 'b', 'c'],
|
||||
chartId: 1,
|
||||
componentId: 'foo',
|
||||
isDateFilter: false,
|
||||
isFilterFieldActive: true,
|
||||
isInstantFilter: false,
|
||||
},
|
||||
setDirectPathToChild: jest.fn(),
|
||||
};
|
||||
|
||||
@@ -29,21 +29,27 @@ describe('HeaderActionsDropdown', () => {
|
||||
const props = {
|
||||
addSuccessToast: () => {},
|
||||
addDangerToast: () => {},
|
||||
dashboardId: 1,
|
||||
dashboardTitle: 'Title',
|
||||
hasUnsavedChanges: false,
|
||||
customCss: '',
|
||||
onChange: () => {},
|
||||
updateCss: () => {},
|
||||
forceRefreshAllCharts: () => {},
|
||||
startPeriodicRender: () => {},
|
||||
dashboardId: 1,
|
||||
dashboardInfo: {},
|
||||
dashboardTitle: 'Title',
|
||||
editMode: false,
|
||||
expandedSlices: {},
|
||||
filters: {},
|
||||
forceRefreshAllCharts: () => {},
|
||||
hasUnsavedChanges: false,
|
||||
isLoading: false,
|
||||
layout: {},
|
||||
onChange: () => {},
|
||||
onSave: () => {},
|
||||
refreshFrequency: 200,
|
||||
setRefreshFrequency: () => {},
|
||||
shouldPersistRefreshFrequency: true,
|
||||
showPropertiesModal: () => {},
|
||||
startPeriodicRender: () => {},
|
||||
updateCss: () => {},
|
||||
userCanEdit: false,
|
||||
userCanSave: false,
|
||||
layout: {},
|
||||
filters: {},
|
||||
expandedSlices: {},
|
||||
onSave: () => {},
|
||||
};
|
||||
|
||||
function setup(overrideProps) {
|
||||
|
||||
Reference in New Issue
Block a user