@@ -56,9 +56,9 @@ void main() {
5656 ]),
5757 ];
5858 final GoRouter router = await createRouter (routes, tester);
59- router.go ('/?p=123 ' );
59+ router.go ('/' );
6060 await tester.pumpAndSettle ();
61- expect (find.text ('1 /?p=123 ' ), findsOneWidget);
61+ expect (find.text ('1 /' ), findsOneWidget);
6262
6363 router.go ('/a' );
6464 await tester.pumpAndSettle ();
@@ -124,8 +124,8 @@ void main() {
124124 ]),
125125 ];
126126 final GoRouter router =
127- await createRouter (routes, tester, initialLocation: '/a?p=123 ' );
128- expect (tester.widget <Text >(find.byKey (key)).data, '/a?p=123 ' );
127+ await createRouter (routes, tester, initialLocation: '/a' );
128+ expect (tester.widget <Text >(find.byKey (key)).data, '/a' );
129129 final GoRouterStateRegistry registry = tester
130130 .widget <GoRouterStateRegistryScope >(
131131 find.byType (GoRouterStateRegistryScope ))
@@ -135,7 +135,7 @@ void main() {
135135 await tester.pump ();
136136 expect (registry.registry.length, 2 );
137137 // should retain the same location even if the location has changed.
138- expect (tester.widget <Text >(find.byKey (key)).data, '/a?p=123 ' );
138+ expect (tester.widget <Text >(find.byKey (key)).data, '/a' );
139139
140140 // Finish the pop animation.
141141 await tester.pumpAndSettle ();
@@ -166,8 +166,8 @@ void main() {
166166 ]),
167167 ];
168168 await createRouter (routes, tester,
169- initialLocation: '/a?p=123 ' , navigatorKey: nav);
170- expect (tester.widget <Text >(find.byKey (key)).data, '/a?p=123 ' );
169+ initialLocation: '/a' , navigatorKey: nav);
170+ expect (tester.widget <Text >(find.byKey (key)).data, '/a' );
171171 final GoRouterStateRegistry registry = tester
172172 .widget <GoRouterStateRegistryScope >(
173173 find.byType (GoRouterStateRegistryScope ))
@@ -177,7 +177,7 @@ void main() {
177177 await tester.pump ();
178178 expect (registry.registry.length, 2 );
179179 // should retain the same location even if the location has changed.
180- expect (tester.widget <Text >(find.byKey (key)).data, '/a?p=123 ' );
180+ expect (tester.widget <Text >(find.byKey (key)).data, '/a' );
181181
182182 // Finish the pop animation.
183183 await tester.pumpAndSettle ();
0 commit comments