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

Function assertFact

test/engine.test.js:242–245  ·  view source on GitHub ↗
(engine)

Source from the content-addressed store, hash-verified

240 const FACT_VALUE = 'FACT_VALUE'
241
242 function assertFact (engine) {
243 expect(engine.facts.size).to.equal(1)
244 expect(engine.facts.has(FACT_NAME)).to.be.true()
245 }
246
247 it('allows a constant fact', () => {
248 engine.addFact(FACT_NAME, FACT_VALUE)

Callers 1

engine.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…