X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/47e0dc87fa82bac593c53518e556ba7c55410288..3a3de86b86ef60fc86f1190d42bc8a2471ab5276:/src/views/workbench/workbench.test.tsx

diff --git a/src/views/workbench/workbench.test.tsx b/src/views/workbench/workbench.test.tsx
index 538b8e780f..29eed60237 100644
--- a/src/views/workbench/workbench.test.tsx
+++ b/src/views/workbench/workbench.test.tsx
@@ -4,24 +4,28 @@
 
 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 { CustomTheme } from '~/common/custom-theme';
+import { createServices } from "~/services/services";
+import 'jest-localstorage-mock';
 
 const history = createBrowserHistory();
 
 it('renders without crashing', () => {
     const div = document.createElement('div');
-    const store = configureStore(createBrowserHistory());
+    const services = createServices("/arvados/v1");
+	services.authService.getUuid = jest.fn().mockReturnValueOnce('test');
+    const store = configureStore(createBrowserHistory(), services);
     ReactDOM.render(
         <MuiThemeProvider theme={CustomTheme}>
             <Provider store={store}>
                 <ConnectedRouter history={history}>
-                    <Workbench/>
+                    <WorkbenchPanel />
                 </ConnectedRouter>
             </Provider>
         </MuiThemeProvider>,
