@@ -88,19 +88,19 @@ main() {
88
88
expect (route.args.fragment, 'abcd' );
89
89
});
90
90
91
- test ('should retrive Widcard route when not exist path' , () async {
91
+ test ('should retrieve Wildcard route when not exist path' , () async {
92
92
final route = await parse.selectRoute ('/paulo' , module: ModuleMock ());
93
93
expect (route, isNotNull);
94
94
expect (route.child !(context, ModularArguments ()), isA <FlutterLogo >());
95
95
});
96
96
97
- test ('should retrive Widcard route when path with query params doesnt exist' , () async {
97
+ test ('should retrieve Wildcard route when path with query params doesn \' t exist' , () async {
98
98
final route = await parse.selectRoute ('/paulo?adbc=1234' , module: ModuleMock ());
99
99
expect (route, isNotNull);
100
100
expect (route.child !(context, ModularArguments ()), isA <FlutterLogo >());
101
101
});
102
102
103
- test ('should retrive Widcard route when path with fragment doesnt exist' , () async {
103
+ test ('should retrieve Wildcard route when path with fragment doesn \' t exist' , () async {
104
104
final route = await parse.selectRoute ('/paulo#adbc=1234' , module: ModuleMock ());
105
105
expect (route, isNotNull);
106
106
expect (route.child !(context, ModularArguments ()), isA <FlutterLogo >());
@@ -112,21 +112,21 @@ main() {
112
112
});
113
113
114
114
group ('Multi Module | ' , () {
115
- test ('should retrive route /mock' , () async {
115
+ test ('should retrieve route /mock' , () async {
116
116
final route = await parse.selectRoute ('/mock' , module: ModuleMock ());
117
117
expect (route, isNotNull);
118
118
expect (route.child !(context, ModularArguments ()), isA <SizedBox >());
119
119
expect (route.path, '/mock/' );
120
120
});
121
121
122
- test ('should retrive route /mock/' , () async {
122
+ test ('should retrieve route /mock/' , () async {
123
123
final route = await parse.selectRoute ('/mock/' , module: ModuleMock ());
124
124
expect (route, isNotNull);
125
125
expect (route.child !(context, ModularArguments ()), isA <SizedBox >());
126
126
expect (route.path, '/mock/' );
127
127
});
128
128
129
- test ('should retrive route /mock/list' , () async {
129
+ test ('should retrieve route /mock/list' , () async {
130
130
final route = await parse.selectRoute ('/mock/list' , module: ModuleMock ());
131
131
expect (route, isNotNull);
132
132
expect (route.child !(context, ModularArguments ()), isA <ListView >());
@@ -201,14 +201,14 @@ main() {
201
201
expect (route.args.fragment, 'abcd' );
202
202
});
203
203
204
- test ('should retrive dynamic route /mock/list/:id' , () async {
204
+ test ('should retrieve dynamic route /mock/list/:id' , () async {
205
205
final route = await parse.selectRoute ('/mock/list/3' , module: ModuleMock ());
206
206
expect (route, isNotNull);
207
207
expect (route.child !(context, route.args).toString (), '3' );
208
208
expect (route.path, '/mock/list/3' );
209
209
});
210
210
211
- test ('should retrive Widcard route when not exist path' , () async {
211
+ test ('should retrieve Wildcard route when not exist path' , () async {
212
212
final route = await parse.selectRoute ('/mock/paulo' , module: ModuleMock ());
213
213
expect (route, isNotNull);
214
214
expect (route.child !(context, ModularArguments ()), isA <FlutterLogo >());
@@ -232,7 +232,7 @@ main() {
232
232
});
233
233
234
234
group ('Outlet Module | ' , () {
235
- test ('should retrive route /home/tab1' , () async {
235
+ test ('should retrieve route /home/tab1' , () async {
236
236
final route = await parse.selectRoute ('/home/tab1' , module: ModuleMock ());
237
237
expect (route, isNotNull);
238
238
expect (route.child !(context, ModularArguments ()), isA <Scaffold >());
@@ -241,7 +241,7 @@ main() {
241
241
expect (route.routerOutlet[0 ].child !(context, ModularArguments ()), isA <TextField >());
242
242
expect (route.routerOutlet[0 ].path, '/home/tab1' );
243
243
});
244
- test ('should retrive route /home/tab2/:id' , () async {
244
+ test ('should retrieve route /home/tab2/:id' , () async {
245
245
final route = await parse.selectRoute ('/home/tab2/3' , module: ModuleMock ());
246
246
expect (route, isNotNull);
247
247
expect (route.child !(context, ModularArguments ()), isA <Scaffold >());
@@ -254,7 +254,7 @@ main() {
254
254
expect (parse.selectRoute ('/home/tab3' , module: ModuleMock ()), throwsA (isA <ModularError >()));
255
255
});
256
256
257
- test ('should retrive route (Module)' , () async {
257
+ test ('should retrieve route (Module)' , () async {
258
258
final route = await parse.selectRoute ('/mock/home' , module: ModuleMock ());
259
259
expect (route, isNotNull);
260
260
expect (route.child !(context, ModularArguments ()), isA <SizedBox >());
0 commit comments