|
|
|
@ -241,19 +241,20 @@ describe('Admin Controllers', () => {
|
|
|
|
|
done();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
// TODO: renable after nbbpm is fixed
|
|
|
|
|
// it('should load /admin/extend/plugins', function (done) {
|
|
|
|
|
// this.timeout(50000);
|
|
|
|
|
// request(`${nconf.get('url')}/api/admin/extend/plugins`, { jar: jar, json: true }, (err, res, body) => {
|
|
|
|
|
// assert.ifError(err);
|
|
|
|
|
// assert(body.hasOwnProperty('installed'));
|
|
|
|
|
// assert(body.hasOwnProperty('upgradeCount'));
|
|
|
|
|
// assert(body.hasOwnProperty('download'));
|
|
|
|
|
// assert(body.hasOwnProperty('incompatible'));
|
|
|
|
|
// done();
|
|
|
|
|
// });
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
TODO: renable after nbbpm is fixed
|
|
|
|
|
it('should load /admin/extend/plugins', function (done) {
|
|
|
|
|
this.timeout(50000);
|
|
|
|
|
request(`${nconf.get('url')}/api/admin/extend/plugins`, { jar: jar, json: true }, (err, res, body) => {
|
|
|
|
|
assert.ifError(err);
|
|
|
|
|
assert(body.hasOwnProperty('installed'));
|
|
|
|
|
assert(body.hasOwnProperty('upgradeCount'));
|
|
|
|
|
assert(body.hasOwnProperty('download'));
|
|
|
|
|
assert(body.hasOwnProperty('incompatible'));
|
|
|
|
|
done();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
*/
|
|
|
|
|
it('should load /admin/manage/users', (done) => {
|
|
|
|
|
request(`${nconf.get('url')}/api/admin/manage/users`, { jar: jar, json: true }, (err, res, body) => {
|
|
|
|
|
assert.ifError(err);
|
|
|
|
|