mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-01-30 06:22:04 +00:00
test: update unit test to match new langchain validation behavior
Updated test "should skip node repository lookup for langchain nodes" to verify that getNode is NOT called for langchain nodes, matching the new behavior where langchain nodes bypass all node repository validation and are handled exclusively by AI-specific validators. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -582,7 +582,7 @@ describe('WorkflowValidator - Comprehensive Tests', () => {
|
||||
expect(mockNodeRepository.getNode).toHaveBeenCalledWith('nodes-base.webhook');
|
||||
});
|
||||
|
||||
it('should try normalized types for langchain nodes', async () => {
|
||||
it('should skip node repository lookup for langchain nodes', async () => {
|
||||
const workflow = {
|
||||
nodes: [
|
||||
{
|
||||
@@ -598,7 +598,9 @@ describe('WorkflowValidator - Comprehensive Tests', () => {
|
||||
|
||||
const result = await validator.validateWorkflow(workflow as any);
|
||||
|
||||
expect(mockNodeRepository.getNode).toHaveBeenCalledWith('nodes-langchain.agent');
|
||||
// Langchain nodes should skip node repository validation
|
||||
// They are validated by dedicated AI validators instead
|
||||
expect(mockNodeRepository.getNode).not.toHaveBeenCalledWith('nodes-langchain.agent');
|
||||
});
|
||||
|
||||
it('should validate typeVersion for versioned nodes', async () => {
|
||||
|
||||
Reference in New Issue
Block a user