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): a failed leg in the repo test carries its at, as the contract has it

Maurice7e9297d86750
diff --git a/client/src/repo/paddleRouteRepo.test.ts b/client/src/repo/paddleRouteRepo.test.ts
index e376a30d6..b6c22c0da 100644
--- a/client/src/repo/paddleRouteRepo.test.ts
+++ b/client/src/repo/paddleRouteRepo.test.ts
@@ -112,9 +112,9 @@ describe('paddleRouteRepo', () => {
await paddleRouteRepo.plan(103, [{ from: A, to: B }], { boat: 'kayak', lakeStyle: 'shore' });
expect(paddleRouteApi.plan).toHaveBeenCalledTimes(3);
- vi.mocked(paddleRouteApi.plan).mockResolvedValue({ legs: [{ status: 'failed', code: 'busy' }], graph_rev: null });
+ vi.mocked(paddleRouteApi.plan).mockResolvedValue({ legs: [{ status: 'failed', code: 'busy', at: null }], graph_rev: null });
await expect(paddleRouteRepo.plan(103, [{ from: B, to: C }], KAYAK)).resolves.toEqual([
- { status: 'failed', code: 'busy' },
+ { status: 'failed', code: 'busy', at: null },
]);
answerAll();
const again = await paddleRouteRepo.plan(103, [{ from: B, to: C }], KAYAK);