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