Story 3.5: Test HTTP Services
As a developer, I want tests for frontend HTTP service interactions, So that API communication is validated with mocked responses.
FRs: FR15 | Sprint: 22
Acceptance Criteria:
- src/tests/services/chatService.test.js verifies sendMessage() posts correctly, getConversations() fetches list, error handling (401 redirect, 500 error message)
- src/tests/services/analyticsService.test.js verifies data fetching, formatting, error handling and retry behavior
- All services use centralized axios mock from src/tests/mocks/
NFRs: NFR6, NFR7, NFR11