|
1 |
| -import {foreachstateBuilder} from '../../../src'; |
| 1 | +import { foreachstateBuilder } from '../../../src'; |
2 | 2 |
|
3 |
| -describe("foreachstateBuilder" , ()=> { |
| 3 | +describe('foreachstateBuilder', () => { |
| 4 | + it('should build an object with default usedForCompensation = false', () => { |
| 5 | + const forEachEstate = foreachstateBuilder() |
| 6 | + .name('forEachEstate') |
| 7 | + .inputCollection('${ .expressions }') |
| 8 | + .iterationParam('singleexpression') |
| 9 | + .workflowId('workflowId') |
| 10 | + .end(true) |
| 11 | + .build(); |
4 | 12 |
|
| 13 | + expect(forEachEstate.usedForCompensation).toBeFalse(); |
| 14 | + }); |
5 | 15 |
|
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 |
| -}) |
| 16 | + it('should allow overwrite usedForCompensation default value', () => { |
| 17 | + const forEachEstate = foreachstateBuilder() |
| 18 | + .name('forEachEstate') |
| 19 | + .inputCollection('${ .expressions }') |
| 20 | + .iterationParam('singleexpression') |
| 21 | + .workflowId('workflowId') |
| 22 | + .usedForCompensation(true) |
| 23 | + .build(); |
| 24 | + |
| 25 | + expect(forEachEstate.usedForCompensation).toBeTrue(); |
| 26 | + }); |
| 27 | +}); |
0 commit comments