걸음 수 Health Connect·HealthKit · 위치 퀘스트 사진·QR 인증 · 행성 형태 확정

This commit is contained in:
Sn-Kinos
2026-10-05 23:57:01 +09:00
parent dc9861df38
commit dce2f64362
44 changed files with 930 additions and 66 deletions
+9
View File
@@ -1,5 +1,6 @@
import 'package:fancake/features/home/home_data.dart';
import 'package:fancake/features/home/home_repository_firestore.dart' show kstWeekStart;
import 'package:fancake/features/quest/quest_evidence.dart' show kstMidnight;
import 'package:flutter_test/flutter_test.dart';
/// HOME 주간 정보(A-37 · HOME 정보위계 v1.0 §2 · §3).
@@ -50,6 +51,14 @@ void main() {
expect(none.rank, isNull);
});
test('만보기 Health 집계 시작은 그 날 0시(KST) — 서버 dayKey 와 같은 경계 (B-02)', () {
// 10-07 00:30 KST(= 10-06 15:30 UTC) → 10-07 00:00 KST = 10-06 15:00 UTC.
expect(
kstMidnight(DateTime.parse('2026-10-06T15:30:00Z')),
DateTime.parse('2026-10-06T15:00:00Z'),
);
});
test('이번 주 시작은 KST 월요일 00:00', () {
// 2026-10-07(수) 15:00 KST → 2026-10-05(월) 00:00 KST = 10-04 15:00 UTC.
expect(