mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(editor): Fix error when there is no path back to referenced node (#16059)
Co-authored-by: Csaba Tuncsik <csaba@n8n.io>
This commit is contained in:
committed by
GitHub
parent
50b83add83
commit
d6ac924b3b
@@ -235,7 +235,7 @@ describe('WorkflowDataProxy', () => {
|
||||
} catch (error) {
|
||||
expect(error).toBeInstanceOf(ExpressionError);
|
||||
const exprError = error as ExpressionError;
|
||||
expect(exprError.message).toEqual("Referenced node doesn't exist");
|
||||
expect(exprError.message).toEqual('Error finding the referenced node');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -246,7 +246,7 @@ describe('WorkflowDataProxy', () => {
|
||||
} catch (error) {
|
||||
expect(error).toBeInstanceOf(ExpressionError);
|
||||
const exprError = error as ExpressionError;
|
||||
expect(exprError.message).toEqual('Invalid expression');
|
||||
expect(exprError.message).toEqual('Error finding the referenced node');
|
||||
expect(exprError.context.type).toEqual('paired_item_no_connection');
|
||||
}
|
||||
});
|
||||
@@ -262,8 +262,8 @@ describe('WorkflowDataProxy', () => {
|
||||
} catch (error) {
|
||||
expect(error).toBeInstanceOf(ExpressionError);
|
||||
const exprError = error as ExpressionError;
|
||||
expect(exprError.message).toEqual('Referenced node is unexecuted');
|
||||
expect(exprError.context.type).toEqual('no_node_execution_data');
|
||||
expect(exprError.message).toEqual('Error finding the referenced node');
|
||||
expect(exprError.context.type).toEqual('paired_item_no_connection');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -286,8 +286,8 @@ describe('WorkflowDataProxy', () => {
|
||||
} catch (error) {
|
||||
expect(error).toBeInstanceOf(ExpressionError);
|
||||
const exprError = error as ExpressionError;
|
||||
expect(exprError.message).toEqual('Referenced node is unexecuted');
|
||||
expect(exprError.context.type).toEqual('no_node_execution_data');
|
||||
expect(exprError.message).toEqual('Error finding the referenced node');
|
||||
expect(exprError.context.type).toEqual('paired_item_no_connection');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user