X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fcheck-params%2Ffollows.ts;h=cdd2783dfad632e6dd7c7e892fb9fffcb56d8f04;hb=e2e22e40f91018cfaf244e0df9a4a93e4f6d0502;hp=0af1562f5b39d7c7eb829fb150a8a2cdaa7787f9;hpb=0f91ae62df8a37194fea84ce1efa9e733d9c1fd8;p=github%2FChocobozzz%2FPeerTube.git 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 () { .expect(403) }) - it('Should fail with an undefined id', async function () { - await request(server.url) - .delete(path + '/' + undefined) - .set('Authorization', 'Bearer ' + server.accessToken) - .set('Accept', 'application/json') - .expect(400) - }) - - it('Should fail with an invalid id', async function () { - await request(server.url) - .delete(path + '/foobar') - .set('Authorization', 'Bearer ' + server.accessToken) - .set('Accept', 'application/json') - .expect(400) - }) - it('Should fail we do not follow this server', async function () { await request(server.url) - .delete(path + '/-1') + .delete(path + '/example.com') .set('Authorization', 'Bearer ' + server.accessToken) .set('Accept', 'application/json') .expect(404)