mengw15 opened a new issue, #6387: URL: https://github.com/apache/texera/issues/6387
### Task Summary `frontend/src/app/hub/service/hub.service.ts` (codecov ~30%, no spec) is an HttpClient service with ~10 `Observable`-returning methods. Cover them with Vitest + `HttpClientTestingModule` — assert each issues the expected request and maps the response; no backend. See `frontend/TESTING.md`. ### Behavior to cover - `getCount(entityType)` -> GET; emits the returned count - `cloneWorkflow(wid)` -> POST; emits the new wid - `isLiked(entityIds, entityTypes)` -> emits `LikedStatus[]` - `postLike(entityId, entityType)` / `postUnlike(...)` -> POST; emit boolean - `toggleLike(...)` -> dispatches to `postLike` vs `postUnlike` based on current liked state - `postView(entityId, userId, entityType)` -> POST; emits the view count - `getTops(...)`, `getCounts(...)`, `getUserAccess(entityTypes, entityIds)` -> GET; emit their payloads - assert method / URL / body for each via `HttpTestingController.expectOne` ### Task Type - [ ] Refactor / Cleanup - [ ] DevOps / Deployment / CI - [x] Testing / QA - [ ] Documentation - [ ] Performance - [ ] Other -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
