Redirect on side panel item activation, activate projects item on project tree item...
[arvados-workbench2.git] / src / views / workbench / workbench.test.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import * as React from 'react';
6 import * as ReactDOM from 'react-dom';
7 import Workbench from '../../views/workbench/workbench';
8 import { Provider } from "react-redux";
9 import configureStore from "../../store/store";
10 import createBrowserHistory from "history/createBrowserHistory";
11 import { ConnectedRouter } from "react-router-redux";
12 import { MuiThemeProvider } from '@material-ui/core/styles';
13 import { CustomTheme } from '../../common/custom-theme';
14
15 const history = createBrowserHistory();
16
17 it('renders without crashing', () => {
18     const div = document.createElement('div');
19     const store = configureStore(createBrowserHistory());
20     ReactDOM.render(
21         <MuiThemeProvider theme={CustomTheme}>
22             <Provider store={store}>
23                 <ConnectedRouter history={history}>
24                     <Workbench/>
25                 </ConnectedRouter>
26             </Provider>
27         </MuiThemeProvider>,
28     div);
29     ReactDOM.unmountComponentAtNode(div);
30 });