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

Method getEvents

src/almanac.js:41–44  ·  view source on GitHub ↗

* retrieve successful events

(outcome = '')

Source from the content-addressed store, hash-verified

39 * retrieve successful events
40 */
41 getEvents (outcome = '') {
42 if (outcome) return this.events[outcome]
43 return this.events.success.concat(this.events.failure)
44 }
45
46 /**
47 * Adds a rule result

Callers 2

almanac.test.jsFile · 0.80
runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected