Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
imtoori committed Jun 28, 2021
1 parent a3a88ae commit 8052edf
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions packages/stream_chat_flutter_core/test/user_list_core_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void main() {
listBuilder: (_, __) => Offstage(),
loadingBuilder: (BuildContext context) => Offstage(),
emptyBuilder: (BuildContext context) => Offstage(),
errorBuilder: (Object error) => Offstage(),
errorBuilder: (BuildContext context, Object error) => Offstage(),
);

await tester.pumpWidget(userListCore);
Expand All @@ -62,7 +62,7 @@ void main() {
listBuilder: (_, __) => Offstage(),
loadingBuilder: (BuildContext context) => Offstage(),
emptyBuilder: (BuildContext context) => Offstage(),
errorBuilder: (Object error) => Offstage(),
errorBuilder: (BuildContext context, Object error) => Offstage(),
);

final mockClient = MockClient();
Expand Down Expand Up @@ -91,7 +91,7 @@ void main() {
listBuilder: (_, __) => Offstage(),
loadingBuilder: (BuildContext context) => Offstage(),
emptyBuilder: (BuildContext context) => Offstage(),
errorBuilder: (Object error) => Offstage(),
errorBuilder: (BuildContext context, Object error) => Offstage(),
userListController: controller,
);

Expand Down Expand Up @@ -125,7 +125,8 @@ void main() {
listBuilder: (_, __) => Offstage(),
loadingBuilder: (BuildContext context) => Offstage(),
emptyBuilder: (BuildContext context) => Offstage(),
errorBuilder: (Object error) => Container(key: errorWidgetKey),
errorBuilder: (BuildContext context, Object error) =>
Container(key: errorWidgetKey),
);

final mockClient = MockClient();
Expand Down Expand Up @@ -170,7 +171,7 @@ void main() {
listBuilder: (_, __) => Offstage(),
loadingBuilder: (BuildContext context) => Offstage(),
emptyBuilder: (BuildContext context) => Container(key: emptyWidgetKey),
errorBuilder: (Object error) => Offstage(),
errorBuilder: (BuildContext context, Object error) => Offstage(),
);

final mockClient = MockClient();
Expand Down Expand Up @@ -215,7 +216,7 @@ void main() {
listBuilder: (_, __) => Container(key: listWidgetKey),
loadingBuilder: (BuildContext context) => Offstage(),
emptyBuilder: (BuildContext context) => Offstage(),
errorBuilder: (Object error) => Offstage(),
errorBuilder: (BuildContext context, Object error) => Offstage(),
);

final mockClient = MockClient();
Expand Down Expand Up @@ -273,7 +274,7 @@ void main() {
),
loadingBuilder: (BuildContext context) => Offstage(),
emptyBuilder: (BuildContext context) => Offstage(),
errorBuilder: (Object error) => Offstage(),
errorBuilder: (BuildContext context, Object error) => Offstage(),
groupAlphabetically: true,
);

Expand Down Expand Up @@ -341,7 +342,7 @@ void main() {
),
loadingBuilder: (BuildContext context) => Offstage(),
emptyBuilder: (BuildContext context) => Offstage(),
errorBuilder: (Object error) => Offstage(),
errorBuilder: (BuildContext context, Object error) => Offstage(),
pagination: pagination,
groupAlphabetically: true,
);
Expand Down Expand Up @@ -446,7 +447,7 @@ void main() {
),
loadingBuilder: (BuildContext context) => Offstage(),
emptyBuilder: (BuildContext context) => Offstage(),
errorBuilder: (Object error) => Offstage(),
errorBuilder: (BuildContext context, Object error) => Offstage(),
pagination: pagination.copyWith(limit: limit),
groupAlphabetically: true,
);
Expand Down

0 comments on commit 8052edf

Please sign in to comment.