Allow nodes to be installed by path name

This commit is contained in:
Nick O'Leary
2015-11-09 16:52:14 +00:00
parent 437b01a0ff
commit cb01920ee6
5 changed files with 96 additions and 76 deletions

View File

@@ -208,12 +208,11 @@ describe("nodes api", function() {
});
var getModuleInfo = sinon.stub(redNodes,'getModuleInfo');
getModuleInfo.onCall(0).returns(null);
getModuleInfo.onCall(1).returns({
name:"foo",
nodes:[{id:"123"}]
});
var installModule = sinon.stub(redNodes,'installModule', function() {
return when.resolve({id:"123"});
return when.resolve({
name:"foo",
nodes:[{id:"123"}]
});
});
request(app)