fix tests
This commit is contained in:
@@ -114,6 +114,10 @@ class MessageSearchListCoreState extends State<MessageSearchListCore> {
|
|||||||
if (newMessageSearchBloc != _messageSearchBloc) {
|
if (newMessageSearchBloc != _messageSearchBloc) {
|
||||||
_messageSearchBloc = newMessageSearchBloc;
|
_messageSearchBloc = newMessageSearchBloc;
|
||||||
loadData();
|
loadData();
|
||||||
|
if (widget.messageSearchListController != null) {
|
||||||
|
widget.messageSearchListController!.loadData = loadData;
|
||||||
|
widget.messageSearchListController!.paginateData = paginateData;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
super.didChangeDependencies();
|
super.didChangeDependencies();
|
||||||
|
|||||||
@@ -130,6 +130,10 @@ class UserListCoreState extends State<UserListCore>
|
|||||||
if (newUsersBloc != _usersBloc) {
|
if (newUsersBloc != _usersBloc) {
|
||||||
_usersBloc = newUsersBloc;
|
_usersBloc = newUsersBloc;
|
||||||
loadData();
|
loadData();
|
||||||
|
if (widget.userListController != null) {
|
||||||
|
widget.userListController!.loadData = loadData;
|
||||||
|
widget.userListController!.paginateData = paginateData;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
super.didChangeDependencies();
|
super.didChangeDependencies();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ void main() {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
await tester.pumpAndSettle();
|
||||||
|
|
||||||
expect(find.byKey(messageSearchListCoreKey), findsOneWidget);
|
expect(find.byKey(messageSearchListCoreKey), findsOneWidget);
|
||||||
expect(controller.loadData, isNotNull);
|
expect(controller.loadData, isNotNull);
|
||||||
|
|||||||
Reference in New Issue
Block a user