mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-31 16:57:08 +02:00
fix build
This commit is contained in:
parent
e630a9598d
commit
fad6d2b8c8
|
|
@ -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),
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user