aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/video-comments.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/utils/video-comments.ts')
-rw-r--r--server/tests/utils/video-comments.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/utils/video-comments.ts b/server/tests/utils/video-comments.ts
index 6a6e225f3..878147049 100644
--- a/server/tests/utils/video-comments.ts
+++ b/server/tests/utils/video-comments.ts
@@ -1,6 +1,6 @@
1import * as request from 'supertest' 1import * as request from 'supertest'
2 2
3function getVideoCommentThreads (url: string, videoId: number, start: number, count: number, sort?: string) { 3function getVideoCommentThreads (url: string, videoId: number | string, start: number, count: number, sort?: string) {
4 const path = '/api/v1/videos/' + videoId + '/comment-threads' 4 const path = '/api/v1/videos/' + videoId + '/comment-threads'
5 5
6 const req = request(url) 6 const req = request(url)
@@ -15,7 +15,7 @@ function getVideoCommentThreads (url: string, videoId: number, start: number, co
15 .expect('Content-Type', /json/) 15 .expect('Content-Type', /json/)
16} 16}
17 17
18function getVideoThreadComments (url: string, videoId: number, threadId: number) { 18function getVideoThreadComments (url: string, videoId: number | string, threadId: number) {
19 const path = '/api/v1/videos/' + videoId + '/comment-threads/' + threadId 19 const path = '/api/v1/videos/' + videoId + '/comment-threads/' + threadId
20 20
21 return request(url) 21 return request(url)
@@ -39,7 +39,7 @@ function addVideoCommentThread (url: string, token: string, videoId: number | st
39function addVideoCommentReply ( 39function addVideoCommentReply (
40 url: string, 40 url: string,
41 token: string, 41 token: string,
42 videoId: number, 42 videoId: number | string,
43 inReplyToCommentId: number, 43 inReplyToCommentId: number,
44 text: string, 44 text: string,
45 expectedStatus = 200 45 expectedStatus = 200