This commit is contained in:
thosakwe 2016-11-23 04:20:41 -05:00
parent a25a0fba36
commit 39c5442164
2 changed files with 2 additions and 2 deletions

View file

@ -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}');

View file

@ -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));