X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5a7f3f56fc39ab231982435d29b8f15e819748fe..9bad01c91c6c67d5067419ab709129ff1d1e6b18:/src/store/auth/auth-actions.test.ts diff --git a/src/store/auth/auth-actions.test.ts b/src/store/auth/auth-actions.test.ts index 2b28cd0891..4ac48a0be2 100644 --- a/src/store/auth/auth-actions.test.ts +++ b/src/store/auth/auth-actions.test.ts @@ -11,21 +11,22 @@ import { USER_LAST_NAME_KEY, USER_OWNER_UUID_KEY, USER_UUID_KEY -} from "../../services/auth-service/auth-service"; +} from "~/services/auth-service/auth-service"; import 'jest-localstorage-mock'; -import { createServices } from "../../services/services"; +import { createServices } from "~/services/services"; import { configureStore, RootStore } from "../store"; import createBrowserHistory from "history/createBrowserHistory"; +import { mockConfig } from '~/common/config'; describe('auth-actions', () => { let reducer: (state: AuthState | undefined, action: AuthAction) => any; let store: RootStore; beforeEach(() => { - store = configureStore(createBrowserHistory(), createServices({ API_HOST: "/arvados/v1", KEEP_WEB_HOST: "" })); + store = configureStore(createBrowserHistory(), createServices(mockConfig({}))); localStorage.clear(); - reducer = authReducer(createServices({ API_HOST: "/arvados/v1", KEEP_WEB_HOST: "" })); + reducer = authReducer(createServices(mockConfig({}))); }); it('should initialise state with user and api token from local storage', () => { @@ -72,3 +73,5 @@ describe('auth-actions', () => { }); */ }); + +