15 lines
340 B
Dart
15 lines
340 B
Dart
import 'package:platform_route/platform_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);
|
|
});
|
|
}
|