diff options
Diffstat (limited to 'server/tests/api/check-params')
-rw-r--r-- | server/tests/api/check-params/follows.ts | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/server/tests/api/check-params/follows.ts b/server/tests/api/check-params/follows.ts index 0af1562f5..cdd2783df 100644 --- a/server/tests/api/check-params/follows.ts +++ b/server/tests/api/check-params/follows.ts | |||
@@ -184,25 +184,9 @@ describe('Test server follows API validators', function () { | |||
184 | .expect(403) | 184 | .expect(403) |
185 | }) | 185 | }) |
186 | 186 | ||
187 | it('Should fail with an undefined id', async function () { | ||
188 | await request(server.url) | ||
189 | .delete(path + '/' + undefined) | ||
190 | .set('Authorization', 'Bearer ' + server.accessToken) | ||
191 | .set('Accept', 'application/json') | ||
192 | .expect(400) | ||
193 | }) | ||
194 | |||
195 | it('Should fail with an invalid id', async function () { | ||
196 | await request(server.url) | ||
197 | .delete(path + '/foobar') | ||
198 | .set('Authorization', 'Bearer ' + server.accessToken) | ||
199 | .set('Accept', 'application/json') | ||
200 | .expect(400) | ||
201 | }) | ||
202 | |||
203 | it('Should fail we do not follow this server', async function () { | 187 | it('Should fail we do not follow this server', async function () { |
204 | await request(server.url) | 188 | await request(server.url) |
205 | .delete(path + '/-1') | 189 | .delete(path + '/example.com') |
206 | .set('Authorization', 'Bearer ' + server.accessToken) | 190 | .set('Authorization', 'Bearer ' + server.accessToken) |
207 | .set('Accept', 'application/json') | 191 | .set('Accept', 'application/json') |
208 | .expect(404) | 192 | .expect(404) |