aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/utils')
-rw-r--r--server/tests/utils/video-comments.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/utils/video-comments.ts b/server/tests/utils/video-comments.ts
index be062f815..6a6e225f3 100644
--- a/server/tests/utils/video-comments.ts
+++ b/server/tests/utils/video-comments.ts
@@ -25,7 +25,7 @@ function getVideoThreadComments (url: string, videoId: number, threadId: number)
25 .expect('Content-Type', /json/) 25 .expect('Content-Type', /json/)
26} 26}
27 27
28function addVideoCommentThread (url: string, token: string, videoId: number, text: string, expectedStatus = 200) { 28function addVideoCommentThread (url: string, token: string, videoId: number | string, text: string, expectedStatus = 200) {
29 const path = '/api/v1/videos/' + videoId + '/comment-threads' 29 const path = '/api/v1/videos/' + videoId + '/comment-threads'
30 30
31 return request(url) 31 return request(url)