From 9b097b0553818b49dcda9c195feb7535eb35070e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Tue, 30 Jun 2026 00:00:24 +0200 Subject: [PATCH] test(audit): type the geo fixture so strict tsc accepts a non-null location --- src/lib/auth/__tests__/audit.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/auth/__tests__/audit.test.ts b/src/lib/auth/__tests__/audit.test.ts index 0b31480df..262316f15 100644 --- a/src/lib/auth/__tests__/audit.test.ts +++ b/src/lib/auth/__tests__/audit.test.ts @@ -18,7 +18,12 @@ import { prisma } from "@/lib/db"; import { lookupIpGeo } from "@/lib/geo"; const ENTRY = { id: "audit-1" }; -const EMPTY_GEO = { location: null, asn: null, carrier: null }; +type GeoResolved = { + location: string | null; + asn: number | null; + carrier: string | null; +}; +const EMPTY_GEO: GeoResolved = { location: null, asn: null, carrier: null }; beforeEach(() => { vi.resetAllMocks();