mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
slightly enhance test coverage for info and log and settings.
This commit is contained in:
@@ -30,17 +30,18 @@ describe("info api", function() {
|
||||
var userSettings = {
|
||||
foo: 123,
|
||||
httpNodeRoot: "testHttpNodeRoot",
|
||||
version: "testVersion"
|
||||
version: "testVersion",
|
||||
paletteCategories :["red","blue","green"]
|
||||
}
|
||||
settings.init(userSettings);
|
||||
app = express();
|
||||
app.get("/settings",info.settings);
|
||||
});
|
||||
|
||||
|
||||
after(function() {
|
||||
settings.reset();
|
||||
});
|
||||
|
||||
|
||||
it('returns the filtered settings', function(done) {
|
||||
request(app)
|
||||
.get("/settings")
|
||||
|
Reference in New Issue
Block a user