(options, factValue)
| 88 | let condition |
| 89 | let almanac |
| 90 | function setup (options, factValue) { |
| 91 | const properties = Object.assign({}, conditionBase, options) |
| 92 | condition = new Condition(properties) |
| 93 | const fact = new Fact(conditionBase.fact, factValue) |
| 94 | almanac = new Almanac() |
| 95 | almanac.addFact(fact) |
| 96 | } |
| 97 | |
| 98 | context('validations', () => { |
| 99 | beforeEach(() => setup({}, 1)) |
no test coverage detected
searching dependent graphs…