test(logging): optimize logging tests and fix broken tests

This commit is contained in:
qzl
2026-04-01 14:46:47 +08:00
parent d1092df254
commit 640b4d15a3
6 changed files with 316 additions and 87 deletions
@@ -145,9 +145,9 @@ class CalendarRepository extends CachedRepository<List<ScheduleItemModel>> {
required DateTime startAt,
required DateTime endAt,
}) async {
final start = Uri.encodeQueryComponent(startAt.toUtc().toIso8601String());
final end = Uri.encodeQueryComponent(endAt.toUtc().toIso8601String());
try {
final start = Uri.encodeQueryComponent(startAt.toUtc().toIso8601String());
final end = Uri.encodeQueryComponent(endAt.toUtc().toIso8601String());
final response = await _apiClient.get<List<dynamic>>(
'$_prefix?start_at=$start&end_at=$end',
);