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:
czlonkowski
2025-10-07 10:18:30 +02:00
parent 1ad2c6f6d2
commit cffd5e8b2e

View File

@@ -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 () => {