slightly enhance test coverage for info and log and settings.

This commit is contained in:
dceejay
2015-03-06 10:18:33 +00:00
parent 234abd82a2
commit 082ce798d8
3 changed files with 26 additions and 6 deletions

View File

@@ -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")