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(assistant): the catalog check lists the Dawarich tools too

Maurice67d8f226225b
diff --git a/server/tests/unit/nest/assistant/assistant-tools.service.test.ts b/server/tests/unit/nest/assistant/assistant-tools.service.test.ts
index 797e96d84..2232b3062 100644
--- a/server/tests/unit/nest/assistant/assistant-tools.service.test.ts
+++ b/server/tests/unit/nest/assistant/assistant-tools.service.test.ts
@@ -75,7 +75,8 @@ beforeAll(async () => {
orm = app.get(MikroORM);
registry = app.get(McpRegistryService);
tools = app.get(AssistantToolsService);
- const addons = ['packing', 'budget', 'collections', 'journey', 'roadtrip'];
+ // Dawarich too: a stay taken into a journal has a card of its own (the journal chat's).
+ const addons = ['packing', 'budget', 'collections', 'journey', 'roadtrip', 'dawarich'];
await Promise.all(addons.map((addon) => setAddonEnabled(orm, addon, true)));
// The wanderer tools show only while the admin allows wanderer under Tours.
await setAppSetting(orm, 'tours_wanderer_enabled', 'true');