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

Function expectFactResultsCache

test/almanac.test.js:129–134  ·  view source on GitHub ↗
(expected)

Source from the content-addressed store, hash-verified

127
128 describe('_setFactValue()', () => {
129 function expectFactResultsCache (expected) {
130 const promise = almanac.factResultsCache.values().next().value
131 expect(promise).to.be.instanceof(Promise)
132 promise.then(value => expect(value).to.equal(expected))
133 return promise
134 }
135
136 function setup (f = new Fact('id', 1)) {
137 fact = f

Callers 1

almanac.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…