mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
test(audit): type the geo fixture so strict tsc accepts a non-null location
This commit is contained in:
1 parent
bdac5b2c0d
commit
9b097b0553
1 file changed
+6
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user