From 1d29647450ed2787b90ebe9422fb861800a325ff Mon Sep 17 00:00:00 2001 From: Ayush Bherwani Date: Thu, 31 Aug 2023 12:15:00 +0530 Subject: [PATCH] [platform_channels] Bump go_router to 10.1.0 (#1999) ## Description Bumps go_router to 10.1.0 and updates test case. ## Pre-launch Checklist - [x] I read the [Flutter Style Guide] _recently_, and have followed its advice. - [x] I signed the [CLA]. - [x] I read the [Contributors Guide]. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-devrel channel on [Discord]. [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [CLA]: https://cla.developers.google.com/ [Discord]: https://github.com/flutter/flutter/wiki/Chat [Contributors Guide]: https://github.com/flutter/samples/blob/main/CONTRIBUTING.md --- platform_channels/pubspec.yaml | 2 +- platform_channels/test/src/add_pet_details_test.dart | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/platform_channels/pubspec.yaml b/platform_channels/pubspec.yaml index b11a8673b..b422a789b 100644 --- a/platform_channels/pubspec.yaml +++ b/platform_channels/pubspec.yaml @@ -11,7 +11,7 @@ dependencies: sdk: flutter cupertino_icons: ^1.0.3 - go_router: ^8.0.0 + go_router: ^10.1.0 dev_dependencies: analysis_defaults: diff --git a/platform_channels/test/src/add_pet_details_test.dart b/platform_channels/test/src/add_pet_details_test.dart index 2c5131393..150c1fe6c 100644 --- a/platform_channels/test/src/add_pet_details_test.dart +++ b/platform_channels/test/src/add_pet_details_test.dart @@ -39,7 +39,8 @@ void main() { expect(petList.last['breed'], 'Persian'); // Navigate back to /petListScreen - expect(router.location, '/petListScreen'); + await tester.pumpAndSettle(); + expect(router.routeInformationProvider.value.uri.path, '/petListScreen'); }); }); }