File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { foreachstateBuilder } from '../../../src' ;
2
+
3
+ describe ( "foreachstateBuilder" , ( ) => {
4
+
5
+
6
+ it ( "should build an object with default usedForCompensation = false" , ( ) => {
7
+
8
+ const forEachEstate = foreachstateBuilder ( )
9
+ . name ( "forEachEstate" )
10
+ . inputCollection ( '${ .expressions }' )
11
+ . iterationParam ( 'singleexpression' )
12
+ . workflowId ( "workflowId" )
13
+ . end ( true )
14
+ . build ( ) ;
15
+
16
+ expect ( forEachEstate . usedForCompensation ) . toBeFalse ( ) ;
17
+
18
+ } ) ;
19
+
20
+
21
+
22
+ it ( "should allow overwrite usedForCompensation default value" , ( ) => {
23
+
24
+ const forEachEstate = foreachstateBuilder ( )
25
+ . name ( "forEachEstate" )
26
+ . inputCollection ( '${ .expressions }' )
27
+ . iterationParam ( 'singleexpression' )
28
+ . workflowId ( "workflowId" )
29
+ . usedForCompensation ( true )
30
+ . build ( ) ;
31
+
32
+ expect ( forEachEstate . usedForCompensation ) . toBeTrue ( ) ;
33
+
34
+ } ) ;
35
+ } )
You can’t perform that action at this time.
0 commit comments