Add SortDirection and ProjectColumnName enums
[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({
18         projects: {
19             items: [],
20             currentItemId: ""
21         },
22         collections: [],
23         router: { location: null },
24         auth: {},
25         sidePanel: []
26     }, createBrowserHistory());
27     ReactDOM.render(
28         <Provider store={store}>
29             <ConnectedRouter history={history}>
30                 <Workbench/>
31             </ConnectedRouter>
32         </Provider>,
33     div);
34     ReactDOM.unmountComponentAtNode(div);
35 });