mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-08 06:13:07 +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:
@@ -658,7 +658,7 @@ export class WorkflowValidator {
|
||||
}
|
||||
|
||||
// Special validation for SplitInBatches node
|
||||
if (sourceNode && sourceNode.type === 'n8n-nodes-base.splitInBatches') {
|
||||
if (sourceNode && sourceNode.type === 'nodes-base.splitInBatches') {
|
||||
this.validateSplitInBatchesConnection(
|
||||
sourceNode,
|
||||
outputIndex,
|
||||
@@ -671,7 +671,7 @@ export class WorkflowValidator {
|
||||
// Check for self-referencing connections
|
||||
if (connection.node === sourceName) {
|
||||
// This is only a warning for non-loop nodes
|
||||
if (sourceNode && sourceNode.type !== 'n8n-nodes-base.splitInBatches') {
|
||||
if (sourceNode && sourceNode.type !== 'nodes-base.splitInBatches') {
|
||||
result.warnings.push({
|
||||
type: 'warning',
|
||||
message: `Node "${sourceName}" has a self-referencing connection. This can cause infinite loops.`
|
||||
|
||||
Reference in New Issue
Block a user