mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-06 13:33:11 +00:00
fix: resolve remaining AI validation integration test failures
- Simplified Calculator and Think tool validators (no toolDescription required - built-in descriptions) - Fixed trigger counting to exclude respondToWebhook from trigger detection - Fixed streaming error filters to use correct error code access pattern (details.code || code) This resolves 9 remaining integration test failures from Phase 2 AI validation implementation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -245,10 +245,11 @@ describe('Integration: AI Agent Validation', () => {
|
||||
expect(data.valid).toBe(false);
|
||||
expect(data.errors).toBeDefined();
|
||||
|
||||
const streamingErrors = data.errors!.filter(e =>
|
||||
e.code === 'STREAMING_WITH_MAIN_OUTPUT' ||
|
||||
e.code === 'STREAMING_AGENT_HAS_OUTPUT'
|
||||
);
|
||||
const streamingErrors = data.errors!.filter(e => {
|
||||
const code = e.details?.code || e.code;
|
||||
return code === 'STREAMING_WITH_MAIN_OUTPUT' ||
|
||||
code === 'STREAMING_AGENT_HAS_OUTPUT';
|
||||
});
|
||||
expect(streamingErrors.length).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user