Update workbench styles to handle main content vertical scrolling
[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
13 const history = createBrowserHistory();
14
15 it('renders without crashing', () => {
16     const div = document.createElement('div');
17     const store = configureStore({ projects: [], router: { location: null }, auth: {} }, createBrowserHistory());
18     ReactDOM.render(
19         <Provider store={store}>
20             <ConnectedRouter history={history}>
21                 <Workbench/>
22             </ConnectedRouter>
23         </Provider>,
24     div);
25     ReactDOM.unmountComponentAtNode(div);
26 });