X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Futils%2Fvideos%2Fvideos.ts;h=7393942534b831be1da5fa0b5a5edb050ef2eedf;hb=59651eee5600839cdc62911a211d61457d8456b7;hp=fefee4878c93ab9529b270887326b9b5f26c29d9;hpb=331128ed3512aa2c1b632e25ac7ac0174bdb3789;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/utils/videos/videos.ts b/server/tests/utils/videos/videos.ts index fefee4878..739394253 100644 --- a/server/tests/utils/videos/videos.ts +++ b/server/tests/utils/videos/videos.ts @@ -23,7 +23,8 @@ function getVideoCategories (url: string) { return makeGetRequest({ url, - path + path, + statusCodeExpected: 200 }) } @@ -32,7 +33,8 @@ function getVideoLicences (url: string) { return makeGetRequest({ url, - path + path, + statusCodeExpected: 200 }) } @@ -41,7 +43,8 @@ function getVideoLanguages (url: string) { return makeGetRequest({ url, - path + path, + statusCodeExpected: 200 }) } @@ -50,7 +53,8 @@ function getVideoPrivacies (url: string) { return makeGetRequest({ url, - path + path, + statusCodeExpected: 200 }) } @@ -143,7 +147,7 @@ function getVideosListSort (url: string, sort: string) { .expect('Content-Type', /json/) } -function removeVideo (url: string, token: string, id: number, expectedStatus = 204) { +function removeVideo (url: string, token: string, id: number | string, expectedStatus = 204) { const path = '/api/v1/videos' return request(url)