Fix tests errors and warnings - iteration 4 (#12212) (#12223)

This commit is contained in:
Michael S. Molina
2021-01-26 04:24:41 -03:00
committed by GitHub
parent 0fc9da6be7
commit 0c08bb87c3
10 changed files with 62 additions and 38 deletions

View File

@@ -20,7 +20,7 @@ import { Provider } from 'react-redux';
import React from 'react';
import { shallow, mount } from 'enzyme';
import sinon from 'sinon';
import fetchMock from 'fetch-mock';
import { ParentSize } from '@vx/responsive';
import { supersetTheme, ThemeProvider } from '@superset-ui/core';
import { Sticky, StickyContainer } from 'react-sticky';
@@ -44,6 +44,8 @@ import WithDragDropContext from 'spec/helpers/WithDragDropContext';
const dashboardLayout = undoableDashboardLayout.present;
const layoutWithTabs = undoableDashboardLayoutWithTabs.present;
fetchMock.get('glob:*/csstemplateasyncmodelview/api/read', {});
describe('DashboardBuilder', () => {
let favStarStub;
@@ -67,6 +69,7 @@ describe('DashboardBuilder', () => {
colorScheme: undefined,
handleComponentDrop() {},
setDirectPathToChild: sinon.spy(),
setMountedTab() {},
};
function setup(overrideProps, useProvider = false, store = mockStore) {