Skip to content

Add unit tests for the wallet activity feed helper filtering events by type #608

Description

@Chucks1093

Summary

The wallet activity feed helper accepts an event type filter but its filtering logic has no unit tests. Tests should confirm that passing a type filter returns only matching events and that omitting the filter returns all events.

Scope

  • Test passing type: 'buy' returns only buy events from a mixed event list
  • Test passing type: 'sell' returns only sell events
  • Test omitting the type filter returns all events regardless of type
  • Test an empty event list returns an empty array regardless of filter

Acceptance Criteria

  • Buy filter returns only buy events
  • Sell filter returns only sell events
  • No filter returns all events
  • Empty list returns empty array

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