all_test
This commit is contained in:
parent
a25a0fba36
commit
39c5442164
2 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ main() {
|
|||
|
||||
test('flatten', () {
|
||||
router.dumpTree(header: 'BEFORE FLATTENING:');
|
||||
final flat = router.flatten();
|
||||
final flat = router..flatten();
|
||||
|
||||
for (Route route in flat.root.children) {
|
||||
print('${route.method} ${route.path} => ${route.matcher.pattern}');
|
||||
|
|
|
@ -37,7 +37,7 @@ main() {
|
|||
expect(lower.resolve('../upper').path, equals('letter/:id/upper'));
|
||||
expect(lower.resolve('/user/34/detail'), equals(deleteUserById));
|
||||
expect(deleteUserById.resolve('../../fizz'), equals(fizz));
|
||||
});
|
||||
}, skip: 'Hierarchy is deprecated.');
|
||||
|
||||
test('resolve', () {
|
||||
expect(router.resolveOnRoot('/'), equals(indexRoute));
|
||||
|
|
Loading…
Reference in a new issue