fix(core): Make expression resolution improvements (#4829)

 Make expression resolution improvements
This commit is contained in:
Iván Ovejero
2022-12-07 12:07:32 +01:00
committed by GitHub
parent 1e4ca1f0d0
commit 0bd13c7173
3 changed files with 59 additions and 8 deletions

View File

@@ -1057,6 +1057,11 @@ describe('Workflow', () => {
description:
'return resolved value when referencing another property with expression when a node has spaces (long "$node["{NODE}"].parameter" syntax)',
input: {
'Node 4 with spaces': {
parameters: {
value1: '',
},
},
Node1: {
parameters: {
value1: 'valueNode1',
@@ -1190,6 +1195,17 @@ describe('Workflow', () => {
],
],
},
'Node 4 with spaces': {
main: [
[
{
node: 'Node2',
type: 'main',
index: 0,
},
],
],
},
};
const workflow = new Workflow({ nodes, connections, active: false, nodeTypes });
@@ -1219,6 +1235,8 @@ describe('Workflow', () => {
},
},
],
Node2: [],
'Node 4 with spaces': [],
},
},
};