X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=server%2Ftests%2Fapi%2Fcheck-params%2Fvideo-blacklist.ts;h=eb16b3af08fb90e2e640200cbac60b637a5675f9;hb=e2e22e40f91018cfaf244e0df9a4a93e4f6d0502;hp=80e6f8011dcdff26a5d3109a5dca57979d0e696b;hpb=792dbaf07f83fbe3f1d209cd9edf190442c7d2f3;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/check-params/video-blacklist.ts b/server/tests/api/check-params/video-blacklist.ts index 80e6f8011..eb16b3af0 100644 --- a/server/tests/api/check-params/video-blacklist.ts +++ b/server/tests/api/check-params/video-blacklist.ts @@ -81,10 +81,10 @@ describe('Test video blacklist API validators', function () { }) describe('When removing a video in blacklist', function () { - const basePath = '/api/v1/blacklist/' + const basePath = '/api/v1/videos/' it('Should fail with a non authenticated user', async function () { - const path = basePath + server.video.id + const path = basePath + server.video.id + '/blacklist' await request(server.url) .delete(path) @@ -94,7 +94,7 @@ describe('Test video blacklist API validators', function () { }) it('Should fail with a non admin user', async function () { - const path = basePath + server.video.id + const path = basePath + server.video.id + '/blacklist' await request(server.url) .delete(path) @@ -104,7 +104,7 @@ describe('Test video blacklist API validators', function () { }) it('Should fail with an incorrect id', async function () { - const path = basePath + 'foobar' + const path = basePath + 'foobar/blacklist' await request(server.url) .delete(path) @@ -115,7 +115,7 @@ describe('Test video blacklist API validators', function () { it('Should fail with a not blacklisted video', async function () { // The video was not added to the blacklist so it should fail - const path = basePath + server.video.id + const path = basePath + server.video.id + '/blacklist' await request(server.url) .delete(path) @@ -126,7 +126,7 @@ describe('Test video blacklist API validators', function () { }) describe('When listing videos in blacklist', function () { - const basePath = '/api/v1/blacklist/' + const basePath = '/api/v1/videos/blacklist/' it('Should fail with a non authenticated user', async function () { const path = basePath