Skip to content

Add integration test for ledger to timestamp helper returning correct estimated date #461

Description

@Chucks1093

Summary

The ledgerToTimestamp helper converts a ledger sequence number to an estimated UTC date. An integration test using known reference values should confirm the conversion is accurate before the helper is used in production UI.

Scope

  • Call the helper with a reference ledger and timestamp equal to each other — assert the result equals the reference timestamp
  • Call with a ledger 100 ahead of reference — assert result is approximately 500 seconds later
  • Call with a ledger 100 behind reference — assert result is approximately 500 seconds earlier

Acceptance Criteria

  • Equal ledger returns reference timestamp exactly
  • Future ledger returns correctly estimated future date
  • Past ledger returns correctly estimated past date

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions