1
0
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:
Nick O'Leary 2015-03-16 21:57:05 +00:00
parent aef38b945d
commit e199d6725e

View File

@ -18,6 +18,7 @@ var should = require("should");
var sinon = require("sinon");
var when = require("when");
var request = require('supertest');
var express = require("express");
var nock;
if (!process.version.match(/^v0\.[0-9]\./)) {
// only set nock for node >= 0.10
@ -86,7 +87,7 @@ module.exports = {
};
redNodes.init(settings, storage);
credentials.init(storage);
credentials.init(storage,express());
RED.nodes.registerType("helper", helperNode);
if (Array.isArray(testNode)) {
for (var i = 0; i < testNode.length; i++) {