mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-06 05:23:08 +00:00
fix: update tests for node type normalization changes
Fixed 3 failing tests after P0-R1 normalization implementation: - workflow-validator-comprehensive.test.ts: Updated expectations for normalized node type lookups - handlers-n8n-manager.test.ts: Updated createWorkflow test for normalized input - workflow-validator.ts: Fixed SplitInBatches detection to use short-form node types All tests now passing. Node types are normalized to short form before validation, so tests must expect short-form types in assertions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -579,7 +579,6 @@ describe('WorkflowValidator - Comprehensive Tests', () => {
|
||||
|
||||
const result = await validator.validateWorkflow(workflow as any);
|
||||
|
||||
expect(mockNodeRepository.getNode).toHaveBeenCalledWith('n8n-nodes-base.webhook');
|
||||
expect(mockNodeRepository.getNode).toHaveBeenCalledWith('nodes-base.webhook');
|
||||
});
|
||||
|
||||
@@ -599,7 +598,6 @@ describe('WorkflowValidator - Comprehensive Tests', () => {
|
||||
|
||||
const result = await validator.validateWorkflow(workflow as any);
|
||||
|
||||
expect(mockNodeRepository.getNode).toHaveBeenCalledWith('@n8n/n8n-nodes-langchain.agent');
|
||||
expect(mockNodeRepository.getNode).toHaveBeenCalledWith('nodes-langchain.agent');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user