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): replay the changed requests side by side in ANTH-010

Maurice7d802081cefc
diff --git a/server/tests/unit/nest/ai-connections/provider-adapters.test.ts b/server/tests/unit/nest/ai-connections/provider-adapters.test.ts
index 0bcb7fb25..4ff1b2cd5 100644
--- a/server/tests/unit/nest/ai-connections/provider-adapters.test.ts
+++ b/server/tests/unit/nest/ai-connections/provider-adapters.test.ts
@@ -532,8 +532,7 @@ describe('AnthropicMessagesClient', () => {
[followUp(REQUEST), 'claude-opus-5-5'],
[followUp(REQUEST, { adapter: 'anthropic-messages', blocks: record.blocks })],
];
- for (const [request, model] of changed) {
- const types = await sentTypes(request, model);
+ for (const types of await Promise.all(changed.map(([request, model]) => sentTypes(request, model)))) {
expect(types).not.toContain('thinking');
expect(types).toContain('tool_use');
}