This commit is contained in:
Barış Soner Uşaklı
2018-01-05 14:44:18 -05:00
parent d64b814acb
commit 8446a733e5
18 changed files with 331 additions and 47 deletions

View File

@@ -255,6 +255,14 @@ describe('Admin Controllers', function () {
});
});
it('should load /admin/manage/admins-mods', function (done) {
request(nconf.get('url') + '/api/admin/manage/admins-mods', { jar: jar, json: true }, function (err, res, body) {
assert.ifError(err);
assert(body);
done();
});
});
it('should return 403 if no referer', function (done) {
request(nconf.get('url') + '/api/admin/users/csv', { jar: jar }, function (err, res, body) {
assert.ifError(err);