diff options
Diffstat (limited to 'server/tests/api/check-params')
-rw-r--r-- | server/tests/api/check-params/users.ts | 12 |
1 files changed, 12 insertions, 0 deletions
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 () { | |||
155 | await checkBadSortPagination(server.url, path, server.accessToken) | 155 | await checkBadSortPagination(server.url, path, server.accessToken) |
156 | }) | 156 | }) |
157 | 157 | ||
158 | it('Should fail with a bad blocked/banned user filter', async function () { | ||
159 | await makeGetRequest({ | ||
160 | url: server.url, | ||
161 | path, | ||
162 | query: { | ||
163 | blocked: 42 | ||
164 | }, | ||
165 | token: server.accessToken, | ||
166 | statusCodeExpected: 400 | ||
167 | }) | ||
168 | }) | ||
169 | |||
158 | it('Should fail with a non authenticated user', async function () { | 170 | it('Should fail with a non authenticated user', async function () { |
159 | await makeGetRequest({ | 171 | await makeGetRequest({ |
160 | url: server.url, | 172 | url: server.url, |