mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-21 19:40:34 +00:00
fix(mcp): a transport priced without a category is stored under its Costs key
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user