X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/afa829ac853b470517757951c51c6a8b1316f0f1..3367b1ff2a1d1050bb435f7bc8230c03435b2529:/src/views/workbench/workbench.test.tsx

diff --git a/src/views/workbench/workbench.test.tsx b/src/views/workbench/workbench.test.tsx
index 6edebaf0..14ca6947 100644
--- a/src/views/workbench/workbench.test.tsx
+++ b/src/views/workbench/workbench.test.tsx
@@ -4,32 +4,30 @@
 
 import * as React from 'react';
 import * as ReactDOM from 'react-dom';
-import Workbench from '../../views/workbench/workbench';
+import { WorkbenchPanel } from './workbench';
 import { Provider } from "react-redux";
-import configureStore 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';
+import { createServices } from "~/services/services";
 
 const history = createBrowserHistory();
 
 it('renders without crashing', () => {
     const div = document.createElement('div');
-    const store = configureStore({
-        projects: {
-            items: [],
-            currentItemId: ""
-        },
-        collections: [],
-        router: { location: null },
-        auth: {},
-        sidePanel: []
-    }, createBrowserHistory());
+    const services = createServices("/arvados/v1");
+	services.authService.getUuid = jest.fn().mockReturnValueOnce('test');
+    const store = configureStore(createBrowserHistory(), services);
     ReactDOM.render(
-        <Provider store={store}>
-            <ConnectedRouter history={history}>
-                <Workbench/>
-            </ConnectedRouter>
-        </Provider>,
+        <MuiThemeProvider theme={CustomTheme}>
+            <Provider store={store}>
+                <ConnectedRouter history={history}>
+                    <WorkbenchPanel />
+                </ConnectedRouter>
+            </Provider>
+        </MuiThemeProvider>,
     div);
     ReactDOM.unmountComponentAtNode(div);
 });
