From 50d6de9c286abcb34ff4234d56d9cbb803db7665 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 14 Dec 2017 17:38:41 +0100 Subject: Begin moving video channel to actor --- server/tests/api/check-params/follows.ts | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'server/tests/api/check-params/follows.ts') 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) -- cgit v1.2.3