Updated tests to reflect addition of version getSet

This commit is contained in:
Anna Thomas 2014-12-08 16:39:48 +00:00
parent 475d9e110e
commit 10681f97d9
1 changed files with 3 additions and 0 deletions

View File

@ -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')