Skip to content

compareStore and comparisonStore have no tests: comparison selection state is uncovered #902

Description

@nanaf6203-bit

compareStore and comparisonStore have no tests: comparison selection state is uncovered

Labels / Complexity: testing · Trivial — Trivial

Summary

compareStore (src/store/compareStore.ts) and comparisonStore (src/store/comparisonStore.ts) manage which properties are selected for comparison. Neither has tests. A regression that allows too many/too few selections or drops selection state ships silently in the compare UI.

Proposal

  • Add specs covering add/remove selection, limits, and clear.

Acceptance criteria

  • The specs assert selection limits and state transitions; they pass via npm test.

Getting started

  • src/store/compareStore.ts, src/store/comparisonStore.ts
  • src/store/__tests__/transactionStore.test.ts — the pattern

Commands: npm test.

Good first files to read: src/store/compareStore.ts.

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