From 10681f97d9b2afbcca6fb53a4f3e1fee962ce4ea Mon Sep 17 00:00:00 2001 From: Anna Thomas Date: Mon, 8 Dec 2014 16:39:48 +0000 Subject: [PATCH] Updated tests to reflect addition of version getSet --- test/red/api/nodes_spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/red/api/nodes_spec.js b/test/red/api/nodes_spec.js index 2a1ecb6e3..4bb76f887 100644 --- a/test/red/api/nodes_spec.js +++ b/test/red/api/nodes_spec.js @@ -117,6 +117,9 @@ describe("nodes api", function() { var getNodeInfo = sinon.stub(redNodes,'getNodeInfo', function(id) { return {"node-red/123":{id:"node-red/123"}}[id]; }); + var getModuleVersion = sinon.stub(redNodes,'getModuleVersion', function(module) { + return {"node-red": {version: "0.0.1"}}[module]; + }); request(app) .get('/nodes/node-red/123') .set('Accept', 'application/json')