mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add events to test helper
This commit is contained in:
parent
869fdbcc6a
commit
4794fe495c
@ -36,6 +36,7 @@ var credentials = require("../../red/runtime/nodes/credentials");
|
|||||||
var comms = require("../../red/api/comms.js");
|
var comms = require("../../red/api/comms.js");
|
||||||
var log = require("../../red/runtime/log.js");
|
var log = require("../../red/runtime/log.js");
|
||||||
var context = require("../../red/runtime/nodes/context.js");
|
var context = require("../../red/runtime/nodes/context.js");
|
||||||
|
var events = require("../../red/runtime/events.js");
|
||||||
|
|
||||||
var http = require('http');
|
var http = require('http');
|
||||||
var express = require('express');
|
var express = require('express');
|
||||||
@ -92,7 +93,7 @@ module.exports = {
|
|||||||
return messageId;
|
return messageId;
|
||||||
};
|
};
|
||||||
|
|
||||||
redNodes.init({settings:settings, storage:storage,log:log});
|
redNodes.init({events:events,settings:settings, storage:storage,log:log,});
|
||||||
RED.nodes.registerType("helper", helperNode);
|
RED.nodes.registerType("helper", helperNode);
|
||||||
if (Array.isArray(testNode)) {
|
if (Array.isArray(testNode)) {
|
||||||
for (i = 0; i < testNode.length; i++) {
|
for (i = 0; i < testNode.length; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user