From fad6d2b8c89552bd802b4d5ffed09e8ffc1291dd Mon Sep 17 00:00:00 2001 From: Charlie Kolb Date: Wed, 26 Mar 2025 11:14:20 +0100 Subject: [PATCH] fix build --- .../utils/__tests__/get-input-connection-data.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/core/src/execution-engine/node-execution-context/utils/__tests__/get-input-connection-data.test.ts b/packages/core/src/execution-engine/node-execution-context/utils/__tests__/get-input-connection-data.test.ts index 7492c4614f9..14caead7dc5 100644 --- a/packages/core/src/execution-engine/node-execution-context/utils/__tests__/get-input-connection-data.test.ts +++ b/packages/core/src/execution-engine/node-execution-context/utils/__tests__/get-input-connection-data.test.ts @@ -397,7 +397,7 @@ describe('makeHandleToolInvocation', () => { const result = await handleToolInvocation(toolArgs); expect(result).toBe(JSON.stringify([{ result: 'success' }])); - expect(mockContext.addOutputData).toHaveBeenCalledWith(NodeConnectionType.AiTool, 0, [ + expect(mockContext.addOutputData).toHaveBeenCalledWith(NodeConnectionTypes.AiTool, 0, [ [{ json: { response: [{ result: 'success' }] } }], ]); }); @@ -419,7 +419,7 @@ describe('makeHandleToolInvocation', () => { expect(result).toBe( '"Error: The Tool attempted to return binary data, which is not supported in Agents"', ); - expect(mockContext.addOutputData).toHaveBeenCalledWith(NodeConnectionType.AiTool, 0, [ + expect(mockContext.addOutputData).toHaveBeenCalledWith(NodeConnectionTypes.AiTool, 0, [ [ { json: { @@ -446,7 +446,7 @@ describe('makeHandleToolInvocation', () => { const result = await handleToolInvocation(toolArgs); expect(result).toBe('[{"a":3}]'); - expect(mockContext.addOutputData).toHaveBeenCalledWith(NodeConnectionType.AiTool, 0, [ + expect(mockContext.addOutputData).toHaveBeenCalledWith(NodeConnectionTypes.AiTool, 0, [ [ { json: { @@ -473,7 +473,7 @@ describe('makeHandleToolInvocation', () => { expect(result).toBe('Error during node execution: Execution failed'); expect(mockContext.addOutputData).toHaveBeenCalledWith( - NodeConnectionType.AiTool, + NodeConnectionTypes.AiTool, 0, expect.any(NodeOperationError), );