Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Michel David
2024-03-29 10:19:11 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a99091d26d68e88a264534b512cebf85c97b7d6e
a99091d2
1 parent
cd0271fc
test: add condition to test case in order to test https route links
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
test/navigation/parse_route_test.dart
test/navigation/parse_route_test.dart
View file @
a99091d
...
...
@@ -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'
);
},
);
...
...
Please
register
or
login
to post a comment