platform/core/route/test/root_test.dart

16 lines
336 B
Dart
Raw Normal View History

2021-05-14 07:02:50 +00:00
import 'package:angel3_route/angel3_route.dart';
2017-11-18 05:29:08 +00:00
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);
});
}