feat(apps/router): 重构路由系统使用 AppRoutes 常量

This commit is contained in:
zl-q
2026-03-19 00:51:45 +08:00
parent 00f37d7e19
commit 5def0358ba
4 changed files with 134 additions and 39 deletions
@@ -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');
});
}