X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/b6a5b173cd4e9f325f371d26204dfe156d911c20..aa45c97670b9726e7afe66c3e747ccab4b82fa6d:/src/store/auth/auth-reducer.test.ts diff --git a/src/store/auth/auth-reducer.test.ts b/src/store/auth/auth-reducer.test.ts index ea08e589..778b500d 100644 --- a/src/store/auth/auth-reducer.test.ts +++ b/src/store/auth/auth-reducer.test.ts @@ -12,7 +12,6 @@ import { USER_OWNER_UUID_KEY, USER_UUID_KEY } from "../../services/auth-service/auth-service"; -import { API_HOST } from "../../common/api/server-api"; import 'jest-localstorage-mock'; @@ -96,7 +95,7 @@ describe('auth-reducer', () => { window.location.assign = jest.fn(); authReducer(initialState, authActions.LOGIN()); expect(window.location.assign).toBeCalledWith( - `${API_HOST}/login?return_to=${window.location.protocol}//${window.location.host}/token` + `/login?return_to=${window.location.protocol}//${window.location.host}/token` ); }); @@ -105,7 +104,7 @@ describe('auth-reducer', () => { window.location.assign = jest.fn(); authReducer(initialState, authActions.LOGOUT()); expect(window.location.assign).toBeCalledWith( - `${API_HOST}/logout?return_to=${location.protocol}//${location.host}` + `/logout?return_to=${location.protocol}//${location.host}` ); }); });