From ea7337cfdee00894792762660fa3c3412aeccccb Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Fri, 3 Jul 2020 10:28:19 +0200 Subject: add check-params test for user list fixes #2918 --- server/tests/api/check-params/users.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'server/tests') diff --git a/server/tests/api/check-params/users.ts b/server/tests/api/check-params/users.ts index 74f0a2d3f..2fea2cbd5 100644 --- a/server/tests/api/check-params/users.ts +++ b/server/tests/api/check-params/users.ts @@ -155,6 +155,18 @@ describe('Test users API validators', function () { await checkBadSortPagination(server.url, path, server.accessToken) }) + it('Should fail with a bad blocked/banned user filter', async function () { + await makeGetRequest({ + url: server.url, + path, + query: { + blocked: 42 + }, + token: server.accessToken, + statusCodeExpected: 400 + }) + }) + it('Should fail with a non authenticated user', async function () { await makeGetRequest({ url: server.url, -- cgit v1.2.3