Skip to content

add unit test coverage for UserQuotaComponent #6519

Closed

Description

@mengw15

Task Summary

frontend/src/app/dashboard/component/user/quota/user-quota.component.ts (codecov ~52%) has a spec but it only asserts should create. Extend it to cover the untested data/chart methods (several are pure transforms — easy to unit-test). See frontend/TESTING.md.

Behavior to add

  • aggregateData / aggregateByMonth / filterOutdatedData -> pure data transforms (feed sample data, assert output)
  • refreshData -> reloads quota data
  • deleteCollection -> removes a collection
  • generateLineChart / generatePieChart -> build the chart configs

Task Type

  • Refactor / Cleanup
  • DevOps / Deployment / CI
  • Testing / QA
  • Documentation
  • Performance
  • Other

Activity

  1. added theissue type on Jul 18, 2026
  2. self-assigned this
    on Jul 18, 2026
  3. added a commit that references this issue on Jul 19, 2026
    90eabda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions