diff options
Diffstat (limited to 'server/tests/utils')
-rw-r--r-- | server/tests/utils/video-comments.ts | 6 |
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 @@ | |||
1 | import * as request from 'supertest' | 1 | import * as request from 'supertest' |
2 | 2 | ||
3 | function getVideoCommentThreads (url: string, videoId: number, start: number, count: number, sort?: string) { | 3 | function 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 | ||
18 | function getVideoThreadComments (url: string, videoId: number, threadId: number) { | 18 | function 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 | |||
39 | function addVideoCommentReply ( | 39 | function 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 |