Skip to content

Add unit tests for the creator card component rendering the correct price and holder count from props #767

Description

@Chucks1093

Summary

The creator card component displays the current key price and holder count. Unit tests should confirm both values are rendered correctly from props and that zero values do not crash the component.

Scope

  • Test a card with price 5.5 XLM and 120 holders renders both values
  • Test a card with price 0 renders '0.00 XLM' without crashing
  • Test a card with 0 holders renders '0 holders' without crashing
  • Assert the card links to the correct creator profile route
  • Test a null price renders a dash placeholder

Acceptance Criteria

  • Price and holder count rendered correctly from props
  • Zero price and zero holders render without crashing
  • Null price shows dash placeholder
  • Card links to correct creator profile route

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