From ffaca92ae0cdb498d61b08e772d7c3a951b5d5ae Mon Sep 17 00:00:00 2001 From: Maurice Date: Sun, 18 Oct 2026 22:46:19 +0200 Subject: [PATCH] test(tours): a failed leg in the repo test carries its at, as the contract has it --- client/src/repo/paddleRouteRepo.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);