Skip to content

Commit

Permalink
fix: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
xsahil03x committed Jan 2, 2025
1 parent a073f82 commit 176d405
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/stream_chat_flutter/test/src/mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ class MockChannel extends Mock implements Channel {
@override
Future<bool> get initialized async => true;

@override
Future<ChannelState> watch({
bool presence = false,
PaginationParams? messagesPagination,
PaginationParams? membersPagination,
PaginationParams? watchersPagination,
}) {
return Future.value(ChannelState());
}

@override
// ignore: prefer_expression_function_bodies
Future<void> keyStroke([String? parentId]) async {
Expand Down

0 comments on commit 176d405

Please sign in to comment.