From e199d6725eaf9a3b1d236c6e4d6c0a2ad641bfe1 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 16 Mar 2015 21:57:05 +0000 Subject: [PATCH] Test helper - initialise credentials with express instance --- test/nodes/helper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/nodes/helper.js b/test/nodes/helper.js index 45b6d9861..436747336 100644 --- a/test/nodes/helper.js +++ b/test/nodes/helper.js @@ -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++) {