mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
fix: clean up prop type errors in jest tests (#11120)
This commit is contained in:
committed by
GitHub
parent
662fb43350
commit
d95b7c2a73
@@ -51,6 +51,7 @@ function setup(overrides) {
|
||||
adhocMetric: sumValueAdhocMetric,
|
||||
onChange,
|
||||
onClose,
|
||||
onResize: () => {},
|
||||
columns,
|
||||
...overrides,
|
||||
};
|
||||
|
||||
@@ -34,6 +34,7 @@ describe('DisplayQueryButton', () => {
|
||||
latestQueryFormData: {
|
||||
datasource: '1__table',
|
||||
},
|
||||
chartHeight: '30px',
|
||||
};
|
||||
|
||||
it('is valid', () => {
|
||||
|
||||
@@ -26,6 +26,7 @@ describe('ExploreActionButtons', () => {
|
||||
canDownload: 'True',
|
||||
latestQueryFormData: {},
|
||||
queryEndpoint: 'localhost',
|
||||
chartHeight: '30px',
|
||||
};
|
||||
|
||||
it('renders', () => {
|
||||
|
||||
@@ -25,6 +25,12 @@ describe('ChartContainer', () => {
|
||||
sliceName: 'Trend Line',
|
||||
vizType: 'line',
|
||||
height: '500px',
|
||||
actions: {},
|
||||
can_overwrite: false,
|
||||
can_download: false,
|
||||
containerId: 'foo',
|
||||
width: '50px',
|
||||
isStarred: false,
|
||||
};
|
||||
|
||||
it('renders when vizType is line', () => {
|
||||
|
||||
@@ -25,7 +25,7 @@ import Button from 'src/components/Button';
|
||||
|
||||
describe('QueryAndSaveButtons', () => {
|
||||
const defaultProps = {
|
||||
canAdd: 'True',
|
||||
canAdd: true,
|
||||
onQuery: sinon.spy(),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user