fix(map): add test-only useMapData exports for MapPage mock

This commit is contained in:
2026-03-29 21:20:54 +02:00
parent 487cb171f2
commit 6f15e1fa24
2 changed files with 19 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ describe("MapPage", () => {
it("supports pagination with 100 items per page and reset on filter changes", async () => {
const user = userEvent.setup();
const bans = Array.from({ length: 120 }, (_, index) => ({
const bans: import("../../types/map").MapBanItem[] = Array.from({ length: 120 }, (_, index) => ({
ip: `192.0.2.${index}`,
jail: "ssh",
banned_at: new Date(Date.now() - index * 1000).toISOString(),