fix: clean up prop type errors in jest tests (#11120)

This commit is contained in:
Elizabeth Thompson
2020-10-02 14:59:04 -07:00
committed by GitHub
parent 662fb43350
commit d95b7c2a73
12 changed files with 55 additions and 14 deletions

View File

@@ -51,6 +51,7 @@ function setup(overrides) {
adhocMetric: sumValueAdhocMetric,
onChange,
onClose,
onResize: () => {},
columns,
...overrides,
};

View File

@@ -34,6 +34,7 @@ describe('DisplayQueryButton', () => {
latestQueryFormData: {
datasource: '1__table',
},
chartHeight: '30px',
};
it('is valid', () => {

View File

@@ -26,6 +26,7 @@ describe('ExploreActionButtons', () => {
canDownload: 'True',
latestQueryFormData: {},
queryEndpoint: 'localhost',
chartHeight: '30px',
};
it('renders', () => {

View File

@@ -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', () => {

View File

@@ -25,7 +25,7 @@ import Button from 'src/components/Button';
describe('QueryAndSaveButtons', () => {
const defaultProps = {
canAdd: 'True',
canAdd: true,
onQuery: sinon.spy(),
};