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 {
|
class MockClientState extends Mock implements ClientState {
|
||||||
OwnUser? _user;
|
OwnUser? _currentUser;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
OwnUser get user => _user ??= OwnUser(
|
OwnUser get currentUser => _currentUser ??= OwnUser(
|
||||||
id: 'testUserId',
|
id: 'testUserId',
|
||||||
role: 'admin',
|
role: 'admin',
|
||||||
createdAt: DateTime.now(),
|
createdAt: DateTime.now(),
|
||||||
|
|||||||
@@ -431,7 +431,7 @@ void main() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
testWidgets(
|
testWidgets(
|
||||||
'streamChatCoreState.userStream should emit all the user events '
|
'streamChatCoreState.currentUserStream should emit all the user events '
|
||||||
'provided by client',
|
'provided by client',
|
||||||
(tester) async {
|
(tester) async {
|
||||||
await tester.runAsync(() async {
|
await tester.runAsync(() async {
|
||||||
|
|||||||
Reference in New Issue
Block a user