X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/eb880179bed8f07348faeccb79d34c9726d206e8..c53693847e622ef89ba7d62a93fc7d60dc68e6df:/src/views/workbench/workbench.test.tsx

diff --git a/src/views/workbench/workbench.test.tsx b/src/views/workbench/workbench.test.tsx
index 588b6d9b..d03e1172 100644
--- a/src/views/workbench/workbench.test.tsx
+++ b/src/views/workbench/workbench.test.tsx
@@ -4,30 +4,27 @@
 
 import * as React from 'react';
 import * as ReactDOM from 'react-dom';
-import { Workbench } from '../../views/workbench/workbench';
+import { Workbench } 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";
-import { AuthService } from "../../services/auth-service/auth-service";
-import Axios from "axios";
+import { CustomTheme } from '~/common/custom-theme';
+import { createServices } from "~/services/services";
 
 const history = createBrowserHistory();
-const authService = new AuthService(Axios.create(), '/arvados/v1');
-
-authService.getUuid = jest.fn().mockReturnValueOnce('test');
 
 it('renders without crashing', () => {
     const div = document.createElement('div');
-    const store = configureStore(createBrowserHistory(), createServices("/arvados/v1"));
+    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 authService={authService} />
+                    <Workbench authService={services.authService}/>
                 </ConnectedRouter>
             </Provider>
         </MuiThemeProvider>,
