jack
|
3e680f40bf
|
Add ChatViewModel testability and unit tests
- Add testable ChatViewModel initializer accepting Transport dependency
- Create MockTransport implementing full Transport protocol for testing
- Add 21 unit tests covering:
- Initialization (delegate, services, nickname)
- Message sending (basic, empty, mentions, commands)
- Message receiving (delegate calls, public messages)
- Peer connections (connect, disconnect, isPeerConnected)
- Deduplication service integration
- Private chat routing
- Bluetooth state handling
- Panic clear functionality
- Guard NotificationService methods against test environment crashes
- Make deduplicationService internal for test access
All 303 tests pass.
|
2025-11-25 09:20:38 -10:00 |
|