MCPcopy
hub / github.com/node-red/node-red / getMockRuntime

Function getMockRuntime

test/unit/@node-red/runtime/lib/telemetry/index_spec.js:15–26  ·  view source on GitHub ↗
(settings)

Source from the content-addressed store, hash-verified

13 let messages = []
14
15 function getMockRuntime(settings) {
16 return {
17 settings: {
18 get: key => { return settings[key] },
19 set: (key, value) => { settings[key] = value },
20 available: () => true,
21 },
22 log: {
23 debug: (msg) => { messages.push(msg)}
24 }
25 }
26 }
27
28 // Principles to test:
29 // - No settings at all; disable telemetry

Callers 1

index_spec.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected