aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params')
-rw-r--r--server/tests/api/check-params/follows.ts26
1 files changed, 24 insertions, 2 deletions
diff --git a/server/tests/api/check-params/follows.ts b/server/tests/api/check-params/follows.ts
index 488666a75..be2a603a3 100644
--- a/server/tests/api/check-params/follows.ts
+++ b/server/tests/api/check-params/follows.ts
@@ -142,13 +142,24 @@ describe('Test server follows API validators', function () {
142 }) 142 })
143 }) 143 })
144 144
145 it('Should fail with an incorrect actor type', async function () {
146 await makeGetRequest({
147 url: server.url,
148 path,
149 query: {
150 actorType: 'blabla'
151 }
152 })
153 })
154
145 it('Should fail succeed with the correct params', async function () { 155 it('Should fail succeed with the correct params', async function () {
146 await makeGetRequest({ 156 await makeGetRequest({
147 url: server.url, 157 url: server.url,
148 path, 158 path,
149 statusCodeExpected: 200, 159 statusCodeExpected: 200,
150 query: { 160 query: {
151 state: 'accepted' 161 state: 'accepted',
162 actorType: 'Application'
152 } 163 }
153 }) 164 })
154 }) 165 })
@@ -169,12 +180,23 @@ describe('Test server follows API validators', function () {
169 await checkBadSortPagination(server.url, path) 180 await checkBadSortPagination(server.url, path)
170 }) 181 })
171 182
183 it('Should fail with an incorrect actor type', async function () {
184 await makeGetRequest({
185 url: server.url,
186 path,
187 query: {
188 actorType: 'blabla'
189 }
190 })
191 })
192
172 it('Should fail with an incorrect state', async function () { 193 it('Should fail with an incorrect state', async function () {
173 await makeGetRequest({ 194 await makeGetRequest({
174 url: server.url, 195 url: server.url,
175 path, 196 path,
176 query: { 197 query: {
177 state: 'blabla' 198 state: 'blabla',
199 actorType: 'Application'
178 } 200 }
179 }) 201 })
180 }) 202 })