Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

test(calendar): the calendar stop oracle reads the place duration the repository now returns

Maurice5b6f76c98a8f
diff --git a/server/tests/unit/db/repositories/Reservations.repository.test.ts b/server/tests/unit/db/repositories/Reservations.repository.test.ts
index 7ced0170f..caac642ad 100644
--- a/server/tests/unit/db/repositories/Reservations.repository.test.ts
+++ b/server/tests/unit/db/repositories/Reservations.repository.test.ts
@@ -228,7 +228,7 @@ describe('ReservationsRepository — CL4 (listCalendarStopsForDays)', () => {
.prepare(
`
SELECT da.*, p.name as place_name, p.address as place_address,
- p.lat as place_lat, p.lng as place_lng,
+ p.lat as place_lat, p.lng as place_lng, p.duration_minutes as place_duration_minutes,
COALESCE(da.assignment_time, p.place_time) as effective_time,
COALESCE(da.assignment_end_time, p.end_time) as effective_end_time
FROM day_assignments da