fix tests

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-06-17 14:35:20 +05:30
parent 837d6f3ad1
commit 0860acb61e
7 changed files with 59 additions and 37 deletions
@@ -34,6 +34,7 @@ void main() {
.thenAnswer((_) => Stream.value(ConnectionStatus.connected));
when(() => channelState.unreadCountStream)
.thenAnswer((i) => Stream.value(1));
when(() => clientState.totalUnreadCount).thenAnswer((i) => 1);
when(() => clientState.totalUnreadCountStream)
.thenAnswer((i) => Stream.value(1));
when(() => channelState.membersStream).thenAnswer((i) => Stream.value([
@@ -109,6 +110,7 @@ void main() {
.thenAnswer((_) => Stream.value(ConnectionStatus.disconnected));
when(() => client.wsConnectionStatus)
.thenReturn(ConnectionStatus.disconnected);
when(() => clientState.totalUnreadCount).thenAnswer((i) => 1);
when(() => clientState.totalUnreadCountStream)
.thenAnswer((i) => Stream.value(1));
@@ -171,6 +173,7 @@ void main() {
]);
when(() => client.wsConnectionStatusStream)
.thenAnswer((_) => Stream.value(ConnectionStatus.connecting));
when(() => clientState.totalUnreadCount).thenAnswer((i) => 1);
when(() => clientState.totalUnreadCountStream)
.thenAnswer((i) => Stream.value(1));
@@ -375,6 +378,7 @@ void main() {
]);
when(() => client.wsConnectionStatusStream)
.thenAnswer((_) => Stream.value(ConnectionStatus.connecting));
when(() => clientState.totalUnreadCount).thenAnswer((i) => 1);
when(() => clientState.totalUnreadCountStream)
.thenAnswer((i) => Stream.value(1));