Add site manager and initial validation
[arvados-workbench2.git] / src / store / auth / auth-action.test.ts
similarity index 93%
rename from src/store/auth/auth-actions.test.ts
rename to src/store/auth/auth-action.test.ts
index aeee2b3b7c8f66d90b4e26c6bb4c09a3c10337e2..6d28eb47332c68a814e5e87514b623284a7cea9f 100644 (file)
@@ -18,7 +18,7 @@ import 'jest-localstorage-mock';
 import { createServices } from "~/services/services";
 import { configureStore, RootStore } from "../store";
 import createBrowserHistory from "history/createBrowserHistory";
-import { mockConfig } from '~/common/config';
+import { Config, mockConfig } from '~/common/config';
 import { ApiActions } from "~/services/api/api-actions";
 
 describe('auth-actions', () => {
@@ -45,7 +45,11 @@ describe('auth-actions', () => {
         localStorage.setItem(USER_OWNER_UUID_KEY, "ownerUuid");
         localStorage.setItem(USER_IS_ADMIN, JSON.stringify("false"));
 
-        store.dispatch(initAuth());
+        const config: any = {
+            remoteHosts: { "xc59": "xc59.api.arvados.com" }
+        };
+
+        store.dispatch(initAuth(config));
 
         expect(store.getState().auth).toEqual({
             apiToken: "token",