From c0f34b9e2a918a0efa2037a1d572ca7eb88fd299 Mon Sep 17 00:00:00 2001 From: Florian Egger Date: Sun, 10 May 2026 09:49:22 +0200 Subject: [PATCH] Update CHECKLIST.md --- CHECKLIST.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHECKLIST.md b/CHECKLIST.md index 2e85882..397a0b8 100644 --- a/CHECKLIST.md +++ b/CHECKLIST.md @@ -45,9 +45,9 @@ Eliminate duplicated logic so each integration has one source of truth. | Step | ✅ Implemented | ✔️ Reviewed | Notes | |------|:------:|:------:|-------| -| **Step 12: Add Correlation IDs to API Errors** (~15 min) | [x] | | `randomUUID().slice(0, 8)` in catch blocks of `bike-route`, `geocode`, `hafas`, `calendar`, `calendar/parse`. Logged server-side, returned in JSON. Existing API tests updated to assert `correlationId`. | -| **Step 13: Add Hook Tests** (~30 min) | [x] | | `useJourneys.test.ts` (4 tests: no-op when missing IDs, success, HTTP error, fetch throw). `useBikeRoute.test.ts` (4 tests: no-op when missing coords, success, HTTP error, fetch throw). | -| **Step 14: Add Component Tests** (~15 min) | [x] | | `EventCard.test.tsx` (renders title + destination, hooks mocked). `CalendarView.test.tsx` (3 tests: month header, event on correct day, overflow indicator). | +| **Step 12: Add Correlation IDs to API Errors** (~15 min) | [x] | [x] | `randomUUID().slice(0, 8)` in catch blocks of `bike-route`, `geocode`, `hafas`, `calendar`, `calendar/parse`. Logged server-side, returned in JSON. Existing API tests updated to assert `correlationId`. | +| **Step 13: Add Hook Tests** (~30 min) | [x] | [x] | `useJourneys.test.ts` (4 tests: no-op when missing IDs, success, HTTP error, fetch throw). `useBikeRoute.test.ts` (4 tests: no-op when missing coords, success, HTTP error, fetch throw). | +| **Step 14: Add Component Tests** (~15 min) | [x] | [x] | `EventCard.test.tsx` (renders title + destination, hooks mocked). `CalendarView.test.tsx` (3 tests: month header, event on correct day, overflow indicator). | ---