(conditions)
| 15 | let eventSpy |
| 16 | |
| 17 | function setup (conditions) { |
| 18 | const event = { type: 'success-event' } |
| 19 | eventSpy = sandbox.spy() |
| 20 | engine = engineFactory() |
| 21 | const rule = factories.rule({ conditions, event }) |
| 22 | engine.addRule(rule) |
| 23 | engine.on('success', eventSpy) |
| 24 | } |
| 25 | |
| 26 | context('constant facts', () => { |
| 27 | const constantCondition = { |
no test coverage detected
searching dependent graphs…