mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
test(tours): type the region load answer in the repo test as the contract's literal
This commit is contained in:
@@ -22,7 +22,7 @@ describe('paddleRegionLoadRepo', () => {
|
|||||||
{ request: paddleRegionLoadRequestSchema, response: paddleRegionLoadResponseSchema },
|
{ request: paddleRegionLoadRequestSchema, response: paddleRegionLoadResponseSchema },
|
||||||
async ({ request }) => {
|
async ({ request }) => {
|
||||||
bodies.push(await request.json());
|
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' } }] };
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user