platform/packages/route/test/root_test.dart

16 lines
334 B
Dart
Raw Normal View History

2017-11-18 05:29:08 +00:00
import 'package:angel_route/angel_route.dart';
import 'package:test/test.dart';
void main() {
test('resolve / on /', () {
2019-11-28 17:40:32 +00:00
var router = Router()
2017-11-18 05:29:08 +00:00
..group('/', (router) {
router.group('/', (router) {
router.get('/', 'ok');
});
});
expect(router.resolveAbsolute('/'), isNotNull);
});
}