]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/utils/videos/videos.ts
Fix videos tests
[github/Chocobozzz/PeerTube.git] / server / tests / utils / videos / videos.ts
index fefee4878c93ab9529b270887326b9b5f26c29d9..7393942534b831be1da5fa0b5a5edb050ef2eedf 100644 (file)
@@ -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)