Remove production test scaffolding from useMapData and update MapPage tests

This commit is contained in:
2026-04-19 18:47:29 +02:00
parent e7582c4bae
commit b6303cff72
2 changed files with 27 additions and 42 deletions

View File

@@ -100,20 +100,3 @@ export function useMapData(
};
}
/**
* Test helper: returns arguments most recently used to call `useMapData`.
*
* This helper is only intended for test use with a mock implementation.
*/
export function getLastArgs(): { range: string; origin: string } {
throw new Error("getLastArgs is only available in tests with a mocked useMapData");
}
/**
* Test helper: mutates mocked map data state.
*
* This helper is only intended for test use with a mock implementation.
*/
export function setMapData(_: Partial<UseMapDataResult>): void {
throw new Error("setMapData is only available in tests with a mocked useMapData");
}