diff options
Diffstat (limited to 'server/tests/api/check-params/video-abuses.ts')
-rw-r--r-- | server/tests/api/check-params/video-abuses.ts | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/server/tests/api/check-params/video-abuses.ts b/server/tests/api/check-params/video-abuses.ts index e643cb95e..a3fe00ffb 100644 --- a/server/tests/api/check-params/video-abuses.ts +++ b/server/tests/api/check-params/video-abuses.ts | |||
@@ -141,13 +141,6 @@ describe('Test video abuses API validators', function () { | |||
141 | }) | 141 | }) |
142 | 142 | ||
143 | describe('When updating a video abuse', function () { | 143 | describe('When updating a video abuse', function () { |
144 | const basePath = '/api/v1/videos/' | ||
145 | // eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
146 | let path: string | ||
147 | |||
148 | before(() => { | ||
149 | path = basePath + server.video.id + '/abuse/' + videoAbuseId | ||
150 | }) | ||
151 | 144 | ||
152 | it('Should fail with a non authenticated user', async function () { | 145 | it('Should fail with a non authenticated user', async function () { |
153 | await updateVideoAbuse(server.url, 'blabla', server.video.uuid, videoAbuseId, {}, 401) | 146 | await updateVideoAbuse(server.url, 'blabla', server.video.uuid, videoAbuseId, {}, 401) |
@@ -179,13 +172,6 @@ describe('Test video abuses API validators', function () { | |||
179 | }) | 172 | }) |
180 | 173 | ||
181 | describe('When deleting a video abuse', function () { | 174 | describe('When deleting a video abuse', function () { |
182 | const basePath = '/api/v1/videos/' | ||
183 | // eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
184 | let path: string | ||
185 | |||
186 | before(() => { | ||
187 | path = basePath + server.video.id + '/abuse/' + videoAbuseId | ||
188 | }) | ||
189 | 175 | ||
190 | it('Should fail with a non authenticated user', async function () { | 176 | it('Should fail with a non authenticated user', async function () { |
191 | await deleteVideoAbuse(server.url, 'blabla', server.video.uuid, videoAbuseId, 401) | 177 | await deleteVideoAbuse(server.url, 'blabla', server.video.uuid, videoAbuseId, 401) |