16 lines
338 B
Dart
16 lines
338 B
Dart
|
import 'package:angel_route/angel_route.dart';
|
||
|
import 'package:test/test.dart';
|
||
|
|
||
|
void main() {
|
||
|
test('resolve / on /', () {
|
||
|
var router = new Router()
|
||
|
..group('/', (router) {
|
||
|
router.group('/', (router) {
|
||
|
router.get('/', 'ok');
|
||
|
});
|
||
|
});
|
||
|
|
||
|
expect(router.resolveAbsolute('/'), isNotNull);
|
||
|
});
|
||
|
}
|