Skip to content

Commit

Permalink
test: add condition to test case in order to test https route links
Browse files Browse the repository at this point in the history
  • Loading branch information
korutx committed Mar 29, 2024
1 parent cd0271f commit a99091d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/navigation/parse_route_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ void main() {
GetPage(page: () => Container(), name: '/first/:name'),
GetPage(page: () => Container(), name: '/second/:id'),
GetPage(page: () => Container(), name: '/third'),
GetPage(page: () => Container(), name: '/last/:id/:name/profile')
GetPage(page: () => Container(), name: '/last/:id/:name/profile'),
GetPage(page: () => Container(), name: '/first/second/:token')
],
));

Expand Down Expand Up @@ -168,6 +169,12 @@ void main() {
expect(Get.parameters['id'], '1234');
expect(Get.parameters['name'], 'ana');
expect(Get.parameters['job'], 'dev');

Get.toNamed(
'https://www.example.com/first/second/fa9662f4-ec3f-11ee-a806-169a3915b383',
);
await tester.pumpAndSettle();
expect(Get.parameters['token'], 'fa9662f4-ec3f-11ee-a806-169a3915b383');
},
);

Expand Down

0 comments on commit a99091d

Please sign in to comment.