mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
lint: fix lint error
This commit is contained in:
@@ -241,19 +241,20 @@ describe('Admin Controllers', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
// TODO: renable after nbbpm is fixed
|
/*
|
||||||
// it('should load /admin/extend/plugins', function (done) {
|
TODO: renable after nbbpm is fixed
|
||||||
// this.timeout(50000);
|
it('should load /admin/extend/plugins', function (done) {
|
||||||
// request(`${nconf.get('url')}/api/admin/extend/plugins`, { jar: jar, json: true }, (err, res, body) => {
|
this.timeout(50000);
|
||||||
// assert.ifError(err);
|
request(`${nconf.get('url')}/api/admin/extend/plugins`, { jar: jar, json: true }, (err, res, body) => {
|
||||||
// assert(body.hasOwnProperty('installed'));
|
assert.ifError(err);
|
||||||
// assert(body.hasOwnProperty('upgradeCount'));
|
assert(body.hasOwnProperty('installed'));
|
||||||
// assert(body.hasOwnProperty('download'));
|
assert(body.hasOwnProperty('upgradeCount'));
|
||||||
// assert(body.hasOwnProperty('incompatible'));
|
assert(body.hasOwnProperty('download'));
|
||||||
// done();
|
assert(body.hasOwnProperty('incompatible'));
|
||||||
// });
|
done();
|
||||||
// });
|
});
|
||||||
|
});
|
||||||
|
*/
|
||||||
it('should load /admin/manage/users', (done) => {
|
it('should load /admin/manage/users', (done) => {
|
||||||
request(`${nconf.get('url')}/api/admin/manage/users`, { jar: jar, json: true }, (err, res, body) => {
|
request(`${nconf.get('url')}/api/admin/manage/users`, { jar: jar, json: true }, (err, res, body) => {
|
||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
|
|||||||
Reference in New Issue
Block a user