Skip to content

Commit

Permalink
Updated tests to reflect addition of version getSet
Browse files Browse the repository at this point in the history
  • Loading branch information
annaet committed Dec 8, 2014
1 parent 475d9e1 commit 10681f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/red/api/nodes_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 10681f9

Please sign in to comment.