From 70a653d0a5924f9f5ac5999f6f996ab2413866d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 9 Mar 2021 14:02:28 -0500 Subject: [PATCH] test: double filter test --- test/controllers-admin.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/controllers-admin.js b/test/controllers-admin.js index 95f32aa3e4..ba9f27be23 100644 --- a/test/controllers-admin.js +++ b/test/controllers-admin.js @@ -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);