Skip to content

Commit

Permalink
fix(bricks): analyser warnings at dart-frog-new hooks (#954)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzanardo authored Aug 23, 2023
1 parent 003eefe commit a10726d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions bricks/dart_frog_new/hooks/test/pre_gen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const validRouteConfiguration = RouteConfiguration(
files: [],
middleware: [],
params: [],
)
),
],
routes: [
RouteFile(
Expand All @@ -88,7 +88,7 @@ const validRouteConfiguration = RouteConfiguration(
route: '/',
params: [],
wildcard: false,
)
),
],
endpoints: {
'/': <RouteFile>[
Expand All @@ -98,7 +98,7 @@ const validRouteConfiguration = RouteConfiguration(
route: '/',
params: [],
wildcard: false,
)
),
],
'/<id>/existing_as_file': <RouteFile>[
RouteFile(
Expand All @@ -107,7 +107,7 @@ const validRouteConfiguration = RouteConfiguration(
route: '/existing_as_file',
params: [],
wildcard: false,
)
),
],
'/<id>/existing_as_dir': <RouteFile>[
RouteFile(
Expand All @@ -116,7 +116,7 @@ const validRouteConfiguration = RouteConfiguration(
route: '/',
params: [],
wildcard: false,
)
),
],
},
rogueRoutes: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void main() {
'[id]/item': '/<id>/item',
'/<id>/item': '/<id>/item',
'/this has space/really': '/this%20has%20space/really',
'/who/does/not/../this/.': '/who/does/this'
'/who/does/not/../this/.': '/who/does/this',
};

for (final entry in expectedMappings.entries) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ void main() {
route: '/',
params: [],
wildcard: false,
)
]
),
],
});

expect(
Expand Down Expand Up @@ -96,7 +96,7 @@ void main() {
route: '/',
params: [],
wildcard: false,
)
),
],
'/<id>': const <RouteFile>[
RouteFile(
Expand All @@ -105,7 +105,7 @@ void main() {
route: '/',
params: [],
wildcard: false,
)
),
],
'/<id>/existing_as_file': const <RouteFile>[
RouteFile(
Expand All @@ -114,7 +114,7 @@ void main() {
route: '/existing_as_file',
params: [],
wildcard: false,
)
),
],
'/<id>/existing_as_dir': const <RouteFile>[
RouteFile(
Expand All @@ -123,7 +123,7 @@ void main() {
route: '/',
params: [],
wildcard: false,
)
),
],
});
});
Expand Down

0 comments on commit a10726d

Please sign in to comment.