fix: more tests

v1.18.x
Julian Lam 5 years ago
parent 98dffa3af8
commit da90fd562e

@ -545,15 +545,6 @@ describe('Admin Controllers', function () {
});
});
it('should load /admin/manage/post-queue', function (done) {
request(nconf.get('url') + '/api/admin/manage/post-queue', { jar: jar, json: true }, function (err, res, body) {
assert.ifError(err);
assert.equal(res.statusCode, 200);
assert(body);
done();
});
});
it('/post-queue should 404 for regular user', function (done) {
request(nconf.get('url') + '/api/post-queue', { json: true }, function (err, res, body) {
assert.ifError(err);
@ -572,15 +563,6 @@ describe('Admin Controllers', function () {
});
});
it('should load /admin/manage/ip-blacklist', function (done) {
request(nconf.get('url') + '/api/admin/manage/ip-blacklist', { jar: jar, json: true }, function (err, res, body) {
assert.ifError(err);
assert.equal(res.statusCode, 200);
assert(body);
done();
});
});
it('/ip-blacklist should 404 for regular user', function (done) {
request(nconf.get('url') + '/api/ip-blacklist', { json: true }, function (err, res, body) {
assert.ifError(err);

Loading…
Cancel
Save