fix(ui): fix tests

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2021-09-29 19:59:46 +05:30
committed by xsahil03x
parent 8b4fa821b1
commit 2bf88bfe0d
2 changed files with 4 additions and 1 deletions
@@ -263,9 +263,11 @@ void main() {
final client = MockClient();
final clientState = MockClientState();
final channel = MockChannel();
final channelState = MockChannelState();
when(() => client.state).thenReturn(clientState);
when(() => clientState.currentUser).thenReturn(OwnUser(id: 'user-id'));
when(() => channel.state).thenReturn(channelState);
final themeData = ThemeData();
final streamTheme = StreamChatThemeData.fromTheme(themeData);