(actions)
| 561 | } |
| 562 | |
| 563 | flatten(actions) { |
| 564 | const flatActions = []; |
| 565 | for (const action of actions) { |
| 566 | if (typeof action === 'object' && 'if' in action) { |
| 567 | const conditionalActions = this.determineConditionalActions(action); |
| 568 | flatActions.push(...this.flatten(conditionalActions)); |
| 569 | } else { |
| 570 | flatActions.push(action); |
| 571 | } |
| 572 | } |
| 573 | return flatActions; |
| 574 | } |
| 575 | |
| 576 | constructCallAndResultFormat(action) { |
| 577 | if (typeof action === 'object' && 'raw' in action) { |
no test coverage detected