fix tests

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-04-02 19:19:20 +05:30
parent 9b36f012b3
commit 3ec389bd71
9 changed files with 23 additions and 26 deletions
@@ -30,6 +30,10 @@ dependencies:
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.0
dependency_overrides:
stream_chat:
path: ../../stream_chat
dev_dependencies:
flutter_test:
sdk: flutter
@@ -121,7 +121,7 @@ void main() {
);
final errorMessage = 'Error! Error! Error!';
final error = DioError(type: DioErrorType.RESPONSE, error: errorMessage);
final error = DioError(type: DioErrorType.response, error: errorMessage);
when(mockChannel.initialized).thenAnswer((_) => Future.error(error));
await tester.pumpWidget(