Skip to content

Add unit tests for the key holder list component rendering the correct rank and share percentage per holder #697

Description

@Chucks1093

Summary

The key holder list ranks investors by the number of keys they hold and shows each holder's share of the total supply. Unit tests should confirm the rank numbers are sequential, the share percentages are correct, and the list is sorted descending by key count.

Scope

  • Test a list of three holders is sorted descending by key count
  • Test ranks are 1, 2, 3 in the rendered order
  • Test share percentages sum to 100% across all holders
  • Test a single holder with all keys shows 100% share
  • Test a tie in key count renders both holders at the same rank

Acceptance Criteria

  • Holders sorted descending by key count
  • Rank numbers sequential and correct
  • Share percentages sum to 100%
  • Single holder with full supply shows 100%
  • Tied holders rendered at the same rank

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions