From 176d405d753988b143df4d3098b116b1dc2320f6 Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Thu, 2 Jan 2025 19:07:52 +0100 Subject: [PATCH] fix: fix test --- packages/stream_chat_flutter/test/src/mocks.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/stream_chat_flutter/test/src/mocks.dart b/packages/stream_chat_flutter/test/src/mocks.dart index c677b3592..ff472daa8 100644 --- a/packages/stream_chat_flutter/test/src/mocks.dart +++ b/packages/stream_chat_flutter/test/src/mocks.dart @@ -24,6 +24,16 @@ class MockChannel extends Mock implements Channel { @override Future get initialized async => true; + @override + Future watch({ + bool presence = false, + PaginationParams? messagesPagination, + PaginationParams? membersPagination, + PaginationParams? watchersPagination, + }) { + return Future.value(ChannelState()); + } + @override // ignore: prefer_expression_function_bodies Future keyStroke([String? parentId]) async {