Merge branch '14102-actions-repository'
[arvados-workbench2.git] / src / store / auth / auth-reducer.test.ts
index 8eeb7c3c636152c9087b868cd01ca71b1678c9df..2b1920a61db9fc47e32fb543341a2010ccd59d63 100644 (file)
@@ -7,13 +7,14 @@ import { AuthAction, authActions } from "./auth-action";
 
 import 'jest-localstorage-mock';
 import { createServices } from "~/services/services";
+import { mockConfig } from '~/common/config';
 
 describe('auth-reducer', () => {
     let reducer: (state: AuthState | undefined, action: AuthAction) => any;
 
     beforeAll(() => {
         localStorage.clear();
-        reducer = authReducer(createServices({ apiHost: "/arvados/v1", keepWebHost: "" }));
+        reducer = authReducer(createServices(mockConfig({})));
     });
 
     it('should correctly initialise state', () => {