fix(tours): resolve client lint warnings

This commit is contained in:
elmocito
2026-10-09 14:33:44 +02:00
committed by Maurice
parent 9a84890142
commit dd43999f1f
4 changed files with 22 additions and 30 deletions
+2 -2
View File
@@ -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(
<MapViewGL