feat: implement secondary navigation for datasets (#9982)

This commit is contained in:
Lily Kuang
2020-06-10 11:55:51 -07:00
committed by GitHub
parent e17da58a39
commit 5339d31ed1
4 changed files with 186 additions and 44 deletions

View File

@@ -24,6 +24,8 @@ import fetchMock from 'fetch-mock';
import DatasetList from 'src/views/datasetList/DatasetList';
import ListView from 'src/components/ListView/ListView';
import { ThemeProvider } from 'emotion-theming';
import { supersetTheme } from '@superset-ui/style';
// store needed for withToasts(datasetTable)
const mockStore = configureStore([thunk]);
@@ -67,6 +69,8 @@ describe('DatasetList', () => {
const mockedProps = {};
const wrapper = mount(<DatasetList {...mockedProps} />, {
context: { store },
wrappingComponent: ThemeProvider,
wrappingComponentProps: { theme: supersetTheme },
});
it('renders', () => {