platform/packages/route/test/root_test.dart

16 lines
331 B
Dart
Raw Normal View History

import 'package:platform_route/route.dart';
import 'package:test/test.dart';
void main() {
test('resolve / on /', () {
var router = Router()
..group('/', (router) {
router.group('/', (router) {
router.get('/', 'ok');
});
});
expect(router.resolveAbsolute('/'), isNotNull);
});
}