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(mcp): search_pois asks the index by Overture path

Mauricecd2ecf897bb0
diff --git a/server/tests/unit/mcp/tools-tags-maps-weather.test.ts b/server/tests/unit/mcp/tools-tags-maps-weather.test.ts
index 3754dfbc4..39ab0b654 100644
--- a/server/tests/unit/mcp/tools-tags-maps-weather.test.ts
+++ b/server/tests/unit/mcp/tools-tags-maps-weather.test.ts
@@ -552,7 +552,8 @@ describe('Tool: search_pois', () => {
const [lat, lng, opts] = trekNearbyMock.mock.calls[0];
expect(lat).toBeCloseTo(48.86, 5);
expect(lng).toBeCloseTo(2.345, 5);
- expect(opts?.category).toBe('restaurant,casual_eatery,fast_food');
+ // Overture paths, so a pill cannot catch what is only spelled like it (#2663).
+ expect(opts?.category).toBe('food_and_drink>restaurant,food_and_drink>casual_eatery');
// Sixty per category, the same allowance the Overpass path spends, rather
// than a number this branch made up for itself.
expect(opts?.limit).toBe(60);