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';
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`
);
});
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}`
);
});
});