@@ -211,7 +211,7 @@ void main() {
211
211
'files' : [
212
212
{
213
213
'name' : r'.._test_.fixtures_dynamic_routes_echo_$message' ,
214
- 'path' : '../test/.fixtures/dynamic/routes/echo/< message> .dart' ,
214
+ 'path' : '../test/.fixtures/dynamic/routes/echo/[ message] .dart' ,
215
215
'route' : '/<message>'
216
216
}
217
217
]
@@ -225,7 +225,7 @@ void main() {
225
225
File (path.join (routes.path, 'index.dart' )).createSync ();
226
226
final echoDirectory = Directory (path.join (routes.path, 'echo' ))
227
227
..createSync ();
228
- File (path.join (echoDirectory.path, '< message> .dart' )).createSync ();
228
+ File (path.join (echoDirectory.path, '[ message] .dart' )).createSync ();
229
229
final configuration = buildRouteConfiguration (directory);
230
230
expect (
231
231
configuration.directories.map ((d) => d.toJson ()).toList (),
@@ -248,14 +248,14 @@ void main() {
248
248
{
249
249
'name' : r'.._test_.fixtures_dynamic_nested_routes_$user_$name' ,
250
250
'path' :
251
- '../test/.fixtures/dynamic_nested/routes/< user>/< name> .dart' ,
251
+ '../test/.fixtures/dynamic_nested/routes/[ user]/[ name] .dart' ,
252
252
'route' : '/<user>/<name>'
253
253
},
254
254
{
255
255
'name' :
256
256
r'.._test_.fixtures_dynamic_nested_routes_$user_$id_index' ,
257
257
'path' :
258
- '../test/.fixtures/dynamic_nested/routes/< user>/<id> /index.dart' ,
258
+ '../test/.fixtures/dynamic_nested/routes/[ user]/[id] /index.dart' ,
259
259
'route' : '/<id>/<user>'
260
260
}
261
261
]
@@ -272,10 +272,10 @@ void main() {
272
272
final routes = Directory (path.join (directory.path, 'routes' ))
273
273
..createSync ();
274
274
File (path.join (routes.path, 'index.dart' )).createSync ();
275
- final userDirectory = Directory (path.join (routes.path, '< user> ' ))
275
+ final userDirectory = Directory (path.join (routes.path, '[ user] ' ))
276
276
..createSync ();
277
- File (path.join (userDirectory.path, '< name> .dart' )).createSync ();
278
- final idDirectory = Directory (path.join (userDirectory.path, '<id> ' ))
277
+ File (path.join (userDirectory.path, '[ name] .dart' )).createSync ();
278
+ final idDirectory = Directory (path.join (userDirectory.path, '[id] ' ))
279
279
..createSync ();
280
280
File (path.join (idDirectory.path, 'index.dart' )).createSync ();
281
281
final configuration = buildRouteConfiguration (directory);
0 commit comments