aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/video-comments.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-27 20:03:37 +0100
committerChocobozzz <me@florianbigard.com>2017-12-27 20:03:37 +0100
commitd50acfab69ce9e05b272dea6c4d34d52960ba14c (patch)
tree55ce8b70777603b772d2cecb96cd71aac9ccfb9c /server/tests/utils/video-comments.ts
parentae45f988bb5ea32152cca02a282d02599dbb633b (diff)
downloadPeerTube-d50acfab69ce9e05b272dea6c4d34d52960ba14c.tar.gz
PeerTube-d50acfab69ce9e05b272dea6c4d34d52960ba14c.tar.zst
PeerTube-d50acfab69ce9e05b272dea6c4d34d52960ba14c.zip
Add comments federation tests
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