Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

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

Mauricecd64a2f542bd
diff --git a/client/src/repo/paddleRegionLoadRepo.test.ts b/client/src/repo/paddleRegionLoadRepo.test.ts
index 0ec9dc83a..6c2242ad7 100644
--- a/client/src/repo/paddleRegionLoadRepo.test.ts
+++ b/client/src/repo/paddleRegionLoadRepo.test.ts
@@ -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' } }] };
}
)
);