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
ETA: 12 hours
Coordinate on Telegram
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
type: 'buy'returns only buy events from a mixed event listtype: 'sell'returns only sell eventsAcceptance Criteria
ETA: 12 hours
Coordinate on Telegram