From dd43999f1f077faca51862dfa81de1b4270c018d Mon Sep 17 00:00:00 2001 From: elmocito <42518790+elmocito@users.noreply.github.com> Date: Fri, 9 Oct 2026 14:33:44 +0200 Subject: [PATCH] fix(tours): resolve client lint warnings --- client/src/components/Map/MapViewGL.test.tsx | 4 +-- .../components/Tours/TourDayRowFacts.test.tsx | 3 +- .../src/components/Tours/TourDayRowFacts.tsx | 29 ++----------------- client/src/components/Tours/tourDayRowIcon.ts | 16 ++++++++++ 4 files changed, 22 insertions(+), 30 deletions(-) create mode 100644 client/src/components/Tours/tourDayRowIcon.ts diff --git a/client/src/components/Map/MapViewGL.test.tsx b/client/src/components/Map/MapViewGL.test.tsx index 98a1fc14c..359e3c094 100644 --- a/client/src/components/Map/MapViewGL.test.tsx +++ b/client/src/components/Map/MapViewGL.test.tsx @@ -959,7 +959,7 @@ describe('MapViewGL', () => { await act(async () => {}); expect(glMap.fitBounds).toHaveBeenCalledOnce(); expect(glMap.fitBounds).toHaveBeenCalledWith(expect.anything(), expect.objectContaining({ maxZoom: 15 })); - const mapConstructions = (maplibregl.Map as any).mock.calls.length; + const mapConstructions = vi.mocked(maplibregl.Map).mock.calls.length; glMap.fitBounds.mockClear(); rerender( @@ -974,7 +974,7 @@ describe('MapViewGL', () => { ); await act(async () => {}); expect(glMap.fitBounds).not.toHaveBeenCalled(); - expect((maplibregl.Map as any).mock.calls).toHaveLength(mapConstructions); + expect(vi.mocked(maplibregl.Map).mock.calls).toHaveLength(mapConstructions); rerender(