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

Function init

test/nodes/core/sequence/17-split_spec.js:1272–1275  ·  view source on GitHub ↗
(node, cb)

Source from the content-addressed store, hash-verified

1270
1271 it('should reduce messages with init types (env)', function(done) {
1272 function init(node, cb) {
1273 process.env.NR_XYZ = "nr_xyz";
1274 cb();
1275 }
1276 function fin(err) {
1277 delete process.env.NR_XYZ;
1278 done(err);

Callers

nothing calls this directly

Calls 1

cbFunction · 0.85

Tested by

no test coverage detected