X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/b6f9b49e6fed67626ae969a6864f45f002fcfd47:/src/store/auth/auth-actions.test.ts..f9dde5c781766b8be71d43d0f031c201a0edcfbb:/src/store/auth/auth-action.test.ts diff --git a/src/store/auth/auth-actions.test.ts b/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 ed223795..d58c9159 100644 --- a/src/store/auth/auth-actions.test.ts +++ b/src/store/auth/auth-action.test.ts @@ -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', () => { @@ -47,7 +47,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",