test(audit): type the geo fixture so strict tsc accepts a non-null location

This commit is contained in:
Marc-André Bombeck committed 2026-06-30 00:00:24 +02:00
1 parent bdac5b2c0d
commit 9b097b0553
1 file changed
+6 -1
+6 -1
View File
@@ -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();