-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add expression field test coverage
Related to #1151
- Loading branch information
Showing
4 changed files
with
118 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"components": [ | ||
{ | ||
"computeOn": "change", | ||
"type": "expression", | ||
"id": "Field_staticValue", | ||
"key": "staticValue", | ||
"expression": "=10" | ||
}, | ||
{ | ||
"computeOn": "change", | ||
"type": "expression", | ||
"id": "Field_exprA", | ||
"key": "exprA", | ||
"expression": "=staticValue + 10" | ||
}, | ||
{ | ||
"computeOn": "change", | ||
"type": "expression", | ||
"id": "Field_exprB", | ||
"key": "exprB", | ||
"expression": "=exprA * 2" | ||
}, | ||
{ | ||
"computeOn": "change", | ||
"type": "expression", | ||
"id": "Field_exprC", | ||
"key": "exprC", | ||
"expression": "=exprB + 10" | ||
} | ||
], | ||
"type": "default", | ||
"id": "Form_non_cyclic_example", | ||
"executionPlatform": "Camunda Cloud", | ||
"executionPlatformVersion": "8.5.0", | ||
"exporter": { | ||
"name": "Camunda Modeler", | ||
"version": "5.22.0" | ||
}, | ||
"schemaVersion": 16 | ||
} |
27 changes: 27 additions & 0 deletions
27
packages/form-js-viewer/test/spec/cyclical-expressions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"components": [ | ||
{ | ||
"computeOn": "change", | ||
"type": "expression", | ||
"id": "Field_exprA", | ||
"key": "exprA", | ||
"expression": "=exprB + 10" | ||
}, | ||
{ | ||
"computeOn": "change", | ||
"type": "expression", | ||
"id": "Field_exprB", | ||
"key": "exprB", | ||
"expression": "=exprA * 2" | ||
} | ||
], | ||
"type": "default", | ||
"id": "Form_cyclic_example", | ||
"executionPlatform": "Camunda Cloud", | ||
"executionPlatformVersion": "8.5.0", | ||
"exporter": { | ||
"name": "Camunda Modeler", | ||
"version": "5.22.0" | ||
}, | ||
"schemaVersion": 16 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters