X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Futils%2Fvideos%2Fvideo-abuses.ts;h=0d72bf457a8384a0fde325df6cad0a0c3a72be5e;hb=2243730c8edf210c0a3ffc161bac89785f6a52f0;hp=f0080923446c128d586066f889afa74633b00f40;hpb=c5d31dba56d669c0df0209761c43c5a6ac7cec4a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/utils/videos/video-abuses.ts b/server/tests/utils/videos/video-abuses.ts index f00809234..0d72bf457 100644 --- a/server/tests/utils/videos/video-abuses.ts +++ b/server/tests/utils/videos/video-abuses.ts @@ -1,6 +1,6 @@ import * as request from 'supertest' -function reportVideoAbuse (url: string, token: string, videoId: number, reason: string, specialStatus = 204) { +function reportVideoAbuse (url: string, token: string, videoId: number | string, reason: string, specialStatus = 204) { const path = '/api/v1/videos/' + videoId + '/abuse' return request(url)