feat(apps/router): 重构路由系统使用 AppRoutes 常量
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:social_app/core/router/app_routes.dart';
|
||||
|
||||
void main() {
|
||||
test('calendar and todo route builders generate concrete paths', () {
|
||||
expect(
|
||||
AppRoutes.calendarEventEdit('evt_123'),
|
||||
'/calendar/events/evt_123/edit',
|
||||
);
|
||||
expect(
|
||||
AppRoutes.calendarEventShare('evt_123'),
|
||||
'/calendar/events/evt_123/share',
|
||||
);
|
||||
expect(AppRoutes.todoEdit('todo_123'), '/todo/todo_123/edit');
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user