fix tests

This commit is contained in:
Salvatore Giordano
2021-10-11 11:37:25 +02:00
parent 9c4d33f1e6
commit 17147b44db
@@ -29,9 +29,10 @@ void main() {
.thenAnswer((_) => const Stream.empty());
when(() => channelClientState.messagesStream)
.thenAnswer((_) => const Stream.empty());
when(() => channelClientState.messages)
.thenReturn([Message(text: 'Hello World!')]);
when(() => channelClientState.messages).thenReturn([]);
when(() => channelClientState.isUpToDate).thenReturn(true);
when(() => channelClientState.isUpToDateStream)
.thenAnswer((_) => Stream.value(true));
when(() => channelClientState.unreadCountStream)
.thenAnswer((_) => Stream.value(0));
when(() => channelClientState.unreadCount).thenReturn(0);