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

Method factValue

test/engine-run.test.js:119–126  ·  view source on GitHub ↗
(factId, params, path)

Source from the content-addressed store, hash-verified

117 describe('custom alamanc', () => {
118 class CapitalAlmanac extends Almanac {
119 factValue (factId, params, path) {
120 return super.factValue(factId, params, path).then(value => {
121 if (typeof value === 'string') {
122 return value.toUpperCase()
123 }
124 return value
125 })
126 }
127 }
128
129 it('returns the capitalized value when using the CapitalAlamanc', () => {

Callers 6

index.test-d.tsFile · 0.45
engine-run.test.jsFile · 0.45
demographicsDefinitionFunction · 0.45
almanac.test.jsFile · 0.45
setupFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected