mengw15 opened a new issue, #6429: URL: https://github.com/apache/texera/issues/6429
### Task Summary `frontend/src/app/workspace/service/ai-assistant/ai-assistant.service.ts` (codecov ~19%, no spec) is an HttpClient service. Cover its methods with Vitest + `HttpClientTestingModule` — assert request shape + response mapping; no backend. See `frontend/TESTING.md`. ### Behavior to cover - `checkAIAssistantEnabled()` -> GET (`responseType: "text"`); emits the `AI_MODEL` value (e.g. `"OpenAI"` vs `"NoAiAssistant"`) - `getTypeAnnotations(code, lineNumber, allcode)` -> emits a `TypeAnnotationResponse` - `locateUnannotated(selectedCode, startLine)` -> emits `UnannotatedArgument[]` - assert method / URL / body for each via `HttpTestingController` ### 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]
