chore(core): fix MockClientState
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user