Michel David

test: add condition to test case in order to test https route links

... ... @@ -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')
],
));
... ... @@ -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');
},
);
... ...