Skip to content

Add unit tests for the bonding curve chart component rendering the correct number of data points #721

Description

@Chucks1093

Summary

The bonding curve chart plots XLM price against key supply. Unit tests should confirm the chart receives the correct number of data points, that the x-axis range matches the current supply, and that the current price point is highlighted.

Scope

  • Test the chart renders exactly N data points when given a supply of N
  • Test the x-axis maximum equals the current supply value
  • Test the current price point is marked with a distinct highlight class
  • Test the chart renders a message 'No data' when given an empty data array
  • Mock the chart library and assert it is called with the correct data shape

Acceptance Criteria

  • Correct number of data points rendered
  • X-axis maximum equals current supply
  • Current price point has highlight class
  • Empty data array renders 'No data' message
  • Chart library called with correct data shape

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

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