()
| 146 | |
| 147 | describe('path', () => { |
| 148 | function conditions () { |
| 149 | return { |
| 150 | any: [{ |
| 151 | fact: 'eligibilityData', |
| 152 | operator: 'lessThan', |
| 153 | path: '$.age', |
| 154 | params: { |
| 155 | eligibilityId: 1 |
| 156 | }, |
| 157 | value: 50 |
| 158 | }] |
| 159 | } |
| 160 | } |
| 161 | it('emits when the condition is met', async () => { |
| 162 | setup(conditions()) |
| 163 | await engine.run() |
no outgoing calls
no test coverage detected
searching dependent graphs…