fix(ui): fix tests

This commit is contained in:
Salvatore Giordano
2021-10-09 20:06:27 +03:00
committed by Efthymios Sarmpanis
parent 7d90dc0cfe
commit 549f3f03d5
4 changed files with 38 additions and 12 deletions
@@ -5,6 +5,8 @@ import 'package:stream_chat_flutter_core/stream_chat_flutter_core.dart';
class MockClient extends Mock implements StreamChatClient {
MockClient() {
when(() => wsConnectionStatus).thenReturn(ConnectionStatus.connected);
when(() => wsConnectionStatusStream)
.thenAnswer((_) => Stream.value(ConnectionStatus.connected));
}
}