From 67ca58f2a52e5132358f42f3586395a6a549f0ee Mon Sep 17 00:00:00 2001 From: Maurice Date: Wed, 4 Nov 2026 15:12:20 +0100 Subject: [PATCH] fix(mcp): a transport priced without a category is stored under its Costs key --- server/tests/unit/mcp/tools-transports.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/tests/unit/mcp/tools-transports.test.ts b/server/tests/unit/mcp/tools-transports.test.ts index 2a8e4506e..17c82c6e8 100644 --- a/server/tests/unit/mcp/tools-transports.test.ts +++ b/server/tests/unit/mcp/tools-transports.test.ts @@ -366,7 +366,8 @@ describe('Transport tools: the price link', () => { }); const data = parseToolResult(result) as { reservation: { id: number } }; const item = await findRow(orm, BudgetItems, { reservation: data.reservation.id }); - expect(item?.category).toBe('train'); + // The type is stored as its Costs key: a train is a transport (#2835). + expect(item?.category).toBe('transport'); }); });