Skip to content

DiversificationChart has no tests: allocation chart data is uncovered #916

Description

@nanaf6203-bit

DiversificationChart has no tests: allocation chart data is uncovered

Labels / Complexity: testing · Trivial — Trivial

Summary

DiversificationChart (src/components/dashboard/DiversificationChart.tsx) renders the allocation/diversification chart. It has no tests. A regression that mis-computes allocation percentages (totals not summing to 100) ships silently in the dashboard.

Proposal

  • Add a spec covering allocation derivation for normal and edge (empty, zero-total) inputs.

Acceptance criteria

  • The spec asserts allocation output for the fixtures; it passes via npm test.

Getting started

  • src/components/dashboard/DiversificationChart.tsx
  • src/components/dashboard/__tests__/charts.a11y.test.tsx — the pattern

Commands: npm test.

Good first files to read: src/components/dashboard/DiversificationChart.tsx.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programTrivialtestingTest coverage or test reliability

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions