3.6 Story 3-6: Test Frontend Services and Utils
Sprint Key: 3-6-test-frontend-services-and-utils
Epic: 3
PRD: testing-framework
Story 3-6: Test Frontend Services and Utils
Status: ready-for-dev
Story
As a developer, I want unit tests for all untested frontend services and utilities, So that HTTP interactions and utility logic are verified without API dependencies.
Acceptance Criteria
- AC1: adminDashboardService — test all 11 async methods + 2 utility functions with mocked httpService
- AC2: fileService — test file operations including FormData upload
- AC3: labelService — test full CRUD cycle
- AC4: userService — test singleton with GDPR-critical deleteAccount
- AC5: databaseOperationsService — test backup/restore/optimize HTTP calls
- AC6: ThemeManager — test theme switching, singleton, DOM interactions
- AC7: fileUtils — test file size formatting, MIME type checking
- AC8: store/index.js — test Vuex store initialization and localStorage plugin
- AC9: Regression safety — all existing tests pass, zero lint errors