| 123456789101112131415161718192021 |
- {
- "name": "verify-merge-errors",
- "nodes": [
- {"id": "n1", "name": "Trigger", "type": "click-trigger", "position": {"x": 0, "y": 0}, "config": {}},
- {"id": "a", "name": "BranchA", "type": "code", "position": {"x": -100, "y": 100},
- "config": {"code": "return [{name: 'no-id-one'}, {name: 'no-id-two'}];"}},
- {"id": "b", "name": "BranchB", "type": "code", "position": {"x": 100, "y": 100},
- "config": {"code": "return [{id: 1, name: 'one'}];"}},
- {"id": "m", "name": "Merge", "type": "merge", "position": {"x": 0, "y": 220},
- "config": {"mode": "combine-by-key", "key": "id", "path1": "result", "path2": "result"}}
- ],
- "connections": [
- {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "a", "targetInput": "data"},
- {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "b", "targetInput": "data"},
- {"sourceNodeId": "a", "sourceOutput": "main", "targetNodeId": "m", "targetInput": "input1"},
- {"sourceNodeId": "b", "sourceOutput": "main", "targetNodeId": "m", "targetInput": "input2"}
- ],
- "expect": {
- "m": {"status": "failed", "errorContains": "an item in input1 has no \"id\" to combine on"}
- }
- }
|