mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-21 22:46:32 +00:00
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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user