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(server): type the created transport in the legs-only seat test

Maurice4d01439c75bd
diff --git a/server/tests/unit/mcp/tools-transports.test.ts b/server/tests/unit/mcp/tools-transports.test.ts
index db84e3229..ca23532de 100644
--- a/server/tests/unit/mcp/tools-transports.test.ts
+++ b/server/tests/unit/mcp/tools-transports.test.ts
@@ -1731,7 +1731,7 @@ describe('update_transport: the flat keys of a legs-only update', () => {
],
},
}),
- ) as any;
+ ) as { reservation: { id: number } };
const updateLegs = (h: McpHarness, tripId: number, reservationId: number, legs: object[]) =>
h.client.callTool({ name: 'update_transport', arguments: { tripId, reservationId, legs } });