MCPcopy
hub / github.com/CacheControl/json-rules-engine / setup

Function setup

test/condition.test.js:90–96  ·  view source on GitHub ↗
(options, factValue)

Source from the content-addressed store, hash-verified

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))

Callers 1

condition.test.jsFile · 0.70

Calls 1

addFactMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…