X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/cf48e928d4d334b0b6434529d7619c616da319f2..7df4149100f41cc8d4a5438630ba95a1d72409a1:/src/views/workbench/workbench.test.tsx

diff --git a/src/views/workbench/workbench.test.tsx b/src/views/workbench/workbench.test.tsx
index 6bd35b3449..538b8e780f 100644
--- a/src/views/workbench/workbench.test.tsx
+++ b/src/views/workbench/workbench.test.tsx
@@ -4,12 +4,27 @@
 
 import * as React from 'react';
 import * as ReactDOM from 'react-dom';
-import Workbench from '../../views/workbench/workbench';
+import { Workbench } from '../../views/workbench/workbench';
 import { Provider } from "react-redux";
-import store from "../../store/store";
+import { configureStore } from "../../store/store";
+import createBrowserHistory from "history/createBrowserHistory";
+import { ConnectedRouter } from "react-router-redux";
+import { MuiThemeProvider } from '@material-ui/core/styles';
+import { CustomTheme } from '../../common/custom-theme';
+
+const history = createBrowserHistory();
 
 it('renders without crashing', () => {
     const div = document.createElement('div');
-    ReactDOM.render(<Provider store={store}><Workbench/></Provider>, div);
+    const store = configureStore(createBrowserHistory());
+    ReactDOM.render(
+        <MuiThemeProvider theme={CustomTheme}>
+            <Provider store={store}>
+                <ConnectedRouter history={history}>
+                    <Workbench/>
+                </ConnectedRouter>
+            </Provider>
+        </MuiThemeProvider>,
+    div);
     ReactDOM.unmountComponentAtNode(div);
 });
