mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Test helper - initialise credentials with express instance
This commit is contained in:
parent
aef38b945d
commit
e199d6725e
@ -18,6 +18,7 @@ var should = require("should");
|
|||||||
var sinon = require("sinon");
|
var sinon = require("sinon");
|
||||||
var when = require("when");
|
var when = require("when");
|
||||||
var request = require('supertest');
|
var request = require('supertest');
|
||||||
|
var express = require("express");
|
||||||
var nock;
|
var nock;
|
||||||
if (!process.version.match(/^v0\.[0-9]\./)) {
|
if (!process.version.match(/^v0\.[0-9]\./)) {
|
||||||
// only set nock for node >= 0.10
|
// only set nock for node >= 0.10
|
||||||
@ -86,7 +87,7 @@ module.exports = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
redNodes.init(settings, storage);
|
redNodes.init(settings, storage);
|
||||||
credentials.init(storage);
|
credentials.init(storage,express());
|
||||||
RED.nodes.registerType("helper", helperNode);
|
RED.nodes.registerType("helper", helperNode);
|
||||||
if (Array.isArray(testNode)) {
|
if (Array.isArray(testNode)) {
|
||||||
for (var i = 0; i < testNode.length; i++) {
|
for (var i = 0; i < testNode.length; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user