test: double filter test

v1.18.x
Barış Soner Uşaklı 4 years ago
parent f4f61b92b4
commit 70a653d0a5

@ -239,6 +239,16 @@ describe('Admin Controllers', () => {
});
});
it('should load /admin/manage/users?filters=banned&filters=verified', (done) => {
request(`${nconf.get('url')}/api/admin/manage/users?filters=banned&filters=verified`, { jar: jar, json: true }, (err, res, body) => {
assert.ifError(err);
assert.strictEqual(res.statusCode, 200);
assert(body);
assert.strictEqual(body.users.length, 0);
done();
});
});
it('should load /admin/manage/users?query=admin', (done) => {
request(`${nconf.get('url')}/api/admin/manage/users?query=admin`, { jar: jar, json: true }, (err, res, body) => {
assert.ifError(err);

Loading…
Cancel
Save