From c49641fde7eec5794a57c11f5204282bf4372f62 Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Mon, 14 Feb 2022 19:52:50 +0530 Subject: [PATCH 1/2] test(llc): fix markAllRead test Signed-off-by: xsahil03x --- packages/stream_chat/test/src/core/api/channel_api_test.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/stream_chat/test/src/core/api/channel_api_test.dart b/packages/stream_chat/test/src/core/api/channel_api_test.dart index 7835ab6a..e631fdb2 100644 --- a/packages/stream_chat/test/src/core/api/channel_api_test.dart +++ b/packages/stream_chat/test/src/core/api/channel_api_test.dart @@ -175,14 +175,14 @@ void main() { test('markAllRead', () async { const path = '/channels/read'; - when(() => client.post(path)).thenAnswer( + when(() => client.post(path, data: {})).thenAnswer( (_) async => successResponse(path, data: {})); final res = await channelApi.markAllRead(); expect(res, isNotNull); - verify(() => client.post(path)).called(1); + verify(() => client.post(path, data: {})).called(1); verifyNoMoreInteractions(client); }); From 338b4ac6198b5d329a079596140e5c2a7dd35511 Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Mon, 14 Feb 2022 20:04:49 +0530 Subject: [PATCH 2/2] chore(llc): fix lint Signed-off-by: xsahil03x --- packages/stream_chat/lib/src/client/channel.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/stream_chat/lib/src/client/channel.dart b/packages/stream_chat/lib/src/client/channel.dart index d3900842..945574fd 100644 --- a/packages/stream_chat/lib/src/client/channel.dart +++ b/packages/stream_chat/lib/src/client/channel.dart @@ -1322,7 +1322,8 @@ class Channel { /// Remove the ban for the user with given [userID] in the channel. @Deprecated( - "Use 'unbanMember' instead. This method will be removed in v4.0.0") + "Use 'unbanMember' instead. This method will be removed in v4.0.0", + ) Future unbanUser(String userID) => unbanMember(userID); /// Remove the ban for the member with given [userID] in the channel.