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(share): the map test's page hook knows the folded days and the map's day pick

Maurice9064ee57b7ad
diff --git a/client/tests/unit/pages/SharedTripPage.map.test.tsx b/client/tests/unit/pages/SharedTripPage.map.test.tsx
index fa2cae0a8..0e9b399a2 100644
--- a/client/tests/unit/pages/SharedTripPage.map.test.tsx
+++ b/client/tests/unit/pages/SharedTripPage.map.test.tsx
@@ -74,6 +74,9 @@ function hookState(data: unknown) {
convert: (n: number) => n,
selectedDay: null,
setSelectedDay: vi.fn(),
+ pickDayOnMap: vi.fn(),
+ collapsedDays: new Set<number>(),
+ toggleDay: vi.fn(),
activeTab: 'plan',
setActiveTab: vi.fn(),
showLangPicker: false,