mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Tidy up API passed to node modules
This commit is contained in:
@@ -32,7 +32,7 @@ describe("api index", function() {
|
||||
settings:{httpNodeRoot:true, httpAdminRoot: true,disableEditor:true},
|
||||
events: {on:function(){},removeListener: function(){}}
|
||||
});
|
||||
app = api.adminApp();
|
||||
app = api.adminApp;
|
||||
});
|
||||
|
||||
it('does not serve the editor', function(done) {
|
||||
@@ -72,7 +72,7 @@ describe("api index", function() {
|
||||
storage:{getSessions:function(){return when.resolve({})}},
|
||||
events:{on:function(){},removeListener:function(){}}
|
||||
});
|
||||
app = api.adminApp();
|
||||
app = api.adminApp;
|
||||
});
|
||||
|
||||
it('it now serves auth', function(done) {
|
||||
@@ -109,7 +109,7 @@ describe("api index", function() {
|
||||
settings:{httpNodeRoot:true, httpAdminRoot: true,disableEditor:false},
|
||||
events:{on:function(){},removeListener:function(){}}
|
||||
});
|
||||
app = api.adminApp();
|
||||
app = api.adminApp;
|
||||
});
|
||||
it('serves the editor', function(done) {
|
||||
request(app)
|
||||
|
||||
Reference in New Issue
Block a user