From 9064ee57b7ad554b608b748db2c9c9f2af4602fd Mon Sep 17 00:00:00 2001 From: Maurice Date: Mon, 28 Sep 2026 16:52:32 +0200 Subject: [PATCH] test(share): the map test's page hook knows the folded days and the map's day pick The redesigned share page reads collapsedDays, toggleDay and pickDayOnMap from its hook; the map test's stand-in left them out and every case there failed on the missing set. --- client/tests/unit/pages/SharedTripPage.map.test.tsx | 3 +++ 1 file changed, 3 insertions(+) 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(), + toggleDay: vi.fn(), activeTab: 'plan', setActiveTab: vi.fn(), showLangPicker: false,