[ARVADOS-WORKBENCH2] updated: 1.1.4-586-geb88017

Git user git at public.curoverse.com
Mon Aug 13 06:22:14 EDT 2018


Summary of changes:
 src/views/workbench/workbench.test.tsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

       via  eb880179bed8f07348faeccb79d34c9726d206e8 (commit)
      from  3626497d024cddee09990afd6e08a24debaf5c7b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit eb880179bed8f07348faeccb79d34c9726d206e8
Author: Janicki Artur <artur.janicki at contractors.roche.com>
Date:   Mon Aug 13 12:21:59 2018 +0200

    workbench - fix test
    
    Feature #13986
    
    Arvados-DCO-1.1-Signed-off-by: Janicki Artur <artur.janicki at contractors.roche.com>

diff --git a/src/views/workbench/workbench.test.tsx b/src/views/workbench/workbench.test.tsx
index 8e0b353..588b6d9 100644
--- a/src/views/workbench/workbench.test.tsx
+++ b/src/views/workbench/workbench.test.tsx
@@ -12,8 +12,13 @@ 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";
 
 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');
@@ -22,7 +27,7 @@ it('renders without crashing', () => {
         <MuiThemeProvider theme={CustomTheme}>
             <Provider store={store}>
                 <ConnectedRouter history={history}>
-                    <Workbench/>
+                    <Workbench authService={authService} />
                 </ConnectedRouter>
             </Provider>
         </MuiThemeProvider>,

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list