WIP: separate runtime and api components

This commit is contained in:
Nick O'Leary
2015-11-11 22:11:02 +00:00
parent 923a46d304
commit f43738446e
49 changed files with 695 additions and 612 deletions

View File

@@ -959,7 +959,7 @@ describe('Flow', function() {
done();
});
});
it("moves any existing error object sideways",function(){
it("moves any existing error object sideways",function(done){
var config = flowUtils.parseConfig([
{id:"t1",type:"tab"},
{id:"1",x:10,y:10,z:"t1",type:"test",name:"a",wires:["2"]},

View File

@@ -145,7 +145,7 @@ describe("red/nodes/index", function() {
var registry = require("../../../red/nodes/registry");
var randomNodeInfo = {id:"5678",types:["random"]};
before(function() {
beforeEach(function() {
sinon.stub(registry,"getNodeInfo",function(id) {
if (id == "test") {
return {id:"1234",types:["test"]};
@@ -159,7 +159,7 @@ describe("red/nodes/index", function() {
return randomNodeInfo;
});
});
after(function() {
afterEach(function() {
registry.getNodeInfo.restore();
registry.disableNode.restore();
});