X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/eb4491eea9ba873845f7a5796d139d19977f8112..2cec626e679d593d5b208a0807b391ab978e0e9d:/src/views/workbench/workbench.test.tsx

diff --git a/src/views/workbench/workbench.test.tsx b/src/views/workbench/workbench.test.tsx
index d03e1172..fe5dff8a 100644
--- a/src/views/workbench/workbench.test.tsx
+++ b/src/views/workbench/workbench.test.tsx
@@ -2,16 +2,19 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import * as React from 'react';
-import * as ReactDOM from 'react-dom';
-import { Workbench } from './workbench';
+import React from 'react';
+import ReactDOM from 'react-dom';
+import { WorkbenchPanel } from './workbench';
 import { Provider } from "react-redux";
-import { configureStore } from "~/store/store";
-import createBrowserHistory from "history/createBrowserHistory";
+import { configureStore } from "store/store";
+import { createBrowserHistory } from "history";
 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 { CustomTheme } from 'common/custom-theme';
+import { createServices } from "services/services";
+import 'jest-localstorage-mock';
+
+jest.mock('views-components/baner/banner', () => ({ Banner: () => 'Banner' }))
 
 const history = createBrowserHistory();
 
@@ -24,7 +27,7 @@ it('renders without crashing', () => {
         <MuiThemeProvider theme={CustomTheme}>
             <Provider store={store}>
                 <ConnectedRouter history={history}>
-                    <Workbench authService={services.authService}/>
+                    <WorkbenchPanel />
                 </ConnectedRouter>
             </Provider>
         </MuiThemeProvider>,
