chore(core): fix MockClientState

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2021-07-26 15:25:15 +05:30
committed by xsahil03x
parent f7b9511adb
commit 2be51c0c01
2 changed files with 3 additions and 3 deletions
@@ -18,10 +18,10 @@ class MockClient extends Mock implements StreamChatClient {
}
class MockClientState extends Mock implements ClientState {
OwnUser? _user;
OwnUser? _currentUser;
@override
OwnUser get user => _user ??= OwnUser(
OwnUser get currentUser => _currentUser ??= OwnUser(
id: 'testUserId',
role: 'admin',
createdAt: DateTime.now(),
@@ -431,7 +431,7 @@ void main() {
);
testWidgets(
'streamChatCoreState.userStream should emit all the user events '
'streamChatCoreState.currentUserStream should emit all the user events '
'provided by client',
(tester) async {
await tester.runAsync(() async {