|
|
|
@ -383,6 +383,9 @@ describe('Admin Controllers', function () {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('should load /admin/advanced/logs', function (done) {
|
|
|
|
|
var fs = require('fs');
|
|
|
|
|
fs.appendFile(meta.logs.path, 'dummy log', function (err) {
|
|
|
|
|
assert.ifError(err);
|
|
|
|
|
request(nconf.get('url') + '/api/admin/advanced/logs', { jar: jar, json: true }, function (err, res, body) {
|
|
|
|
|
assert.ifError(err);
|
|
|
|
|
assert.equal(res.statusCode, 200);
|
|
|
|
@ -390,6 +393,7 @@ describe('Admin Controllers', function () {
|
|
|
|
|
done();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('should load /admin/general/navigation', function (done) {
|
|
|
|
|
var navigation = require('../src/navigation/admin');
|
|
|
|
|