@@ -211,7 +211,7 @@ void main() {
211211 'files' : [
212212 {
213213 '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' ,
215215 'route' : '/<message>'
216216 }
217217 ]
@@ -225,7 +225,7 @@ void main() {
225225 File (path.join (routes.path, 'index.dart' )).createSync ();
226226 final echoDirectory = Directory (path.join (routes.path, 'echo' ))
227227 ..createSync ();
228- File (path.join (echoDirectory.path, '< message> .dart' )).createSync ();
228+ File (path.join (echoDirectory.path, '[ message] .dart' )).createSync ();
229229 final configuration = buildRouteConfiguration (directory);
230230 expect (
231231 configuration.directories.map ((d) => d.toJson ()).toList (),
@@ -248,14 +248,14 @@ void main() {
248248 {
249249 'name' : r'.._test_.fixtures_dynamic_nested_routes_$user_$name' ,
250250 'path' :
251- '../test/.fixtures/dynamic_nested/routes/< user>/< name> .dart' ,
251+ '../test/.fixtures/dynamic_nested/routes/[ user]/[ name] .dart' ,
252252 'route' : '/<user>/<name>'
253253 },
254254 {
255255 'name' :
256256 r'.._test_.fixtures_dynamic_nested_routes_$user_$id_index' ,
257257 'path' :
258- '../test/.fixtures/dynamic_nested/routes/< user>/<id> /index.dart' ,
258+ '../test/.fixtures/dynamic_nested/routes/[ user]/[id] /index.dart' ,
259259 'route' : '/<id>/<user>'
260260 }
261261 ]
@@ -272,10 +272,10 @@ void main() {
272272 final routes = Directory (path.join (directory.path, 'routes' ))
273273 ..createSync ();
274274 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] ' ))
276276 ..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] ' ))
279279 ..createSync ();
280280 File (path.join (idDirectory.path, 'index.dart' )).createSync ();
281281 final configuration = buildRouteConfiguration (directory);
0 commit comments