Obtain configuration from discovery endpoint
[arvados.git] / src / store / auth / auth-reducer.test.ts
index aaedd40d0b847455d0852efbce0a031cfd14067d..2b1920a61db9fc47e32fb543341a2010ccd59d63 100644 (file)
@@ -6,14 +6,15 @@ import { authReducer, AuthState } from "./auth-reducer";
 import { AuthAction, authActions } from "./auth-action";
 
 import 'jest-localstorage-mock';
-import { createServices } from "../../services/services";
+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', () => {