test(tours): type the region load answer in the repo test as the contract's literal

This commit is contained in:
Maurice
2026-10-18 01:20:20 +02:00
parent 2409b7014d
commit a4a39ee4ce
+1 -1
View File
@@ -22,7 +22,7 @@ describe('paddleRegionLoadRepo', () => {
{ request: paddleRegionLoadRequestSchema, response: paddleRegionLoadResponseSchema },
async ({ request }) => {
bodies.push(await request.json());
return { points: [{ state: 'ready', region: { id: 'mv', name: 'Mecklenburg' } }] };
return { points: [{ state: 'ready' as const, region: { id: 'mv', name: 'Mecklenburg' } }] };
}
)
);