| 1234567891011121314151617 |
- {
- "name": "verify-template-errors",
- "nodes": [
- {"id": "n1", "name": "Trigger", "type": "click-trigger", "position": {"x": 0, "y": 0}, "config": {}},
- {"id": "n2", "name": "Fixture", "type": "code", "position": {"x": 0, "y": 100},
- "config": {"code": "return { name: 'Ada' };"}},
- {"id": "n3", "name": "RenderMissingField", "type": "template", "position": {"x": 0, "y": 200},
- "config": {"templateSource": "input", "templateField": "data.result.nope", "outputField": "text"}}
- ],
- "connections": [
- {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "n2", "targetInput": "data"},
- {"sourceNodeId": "n2", "sourceOutput": "main", "targetNodeId": "n3", "targetInput": "data"}
- ],
- "expect": {
- "n3": {"status": "failed", "errorContains": "no template text found at \"data.result.nope\""}
- }
- }
|