From d9b686bdeb5d96a3862db4f2575a3d66ead0b7f1 Mon Sep 17 00:00:00 2001 From: Charlie Kolb Date: Wed, 26 Mar 2025 11:33:43 +0100 Subject: [PATCH] fix test --- .../utils/__tests__/get-input-connection-data.test.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 14caead7dc5..6280aecd945 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 @@ -432,7 +432,12 @@ describe('makeHandleToolInvocation', () => { }); it('should continue if json and binary data exist', async () => { - const mockContext = mock(); + const warnFn = jest.fn(); + const mockContext = mock({ + logger: { + warn: warnFn, + }, + }); contextFactory.mockReturnValue(mockContext); const mockResult = [[{ json: { a: 3 }, binary: { file: 'data' } }]]; @@ -455,6 +460,7 @@ describe('makeHandleToolInvocation', () => { }, ], ]); + expect(warnFn).toHaveBeenCalled(); }); it('should handle execution errors and return an error message', async () => {