aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/video-comments.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-27 10:12:18 +0100
committerChocobozzz <me@florianbigard.com>2017-12-27 10:12:18 +0100
commite2e22e40f91018cfaf244e0df9a4a93e4f6d0502 (patch)
tree73950d68cc7f4df5b21625532ed654bc52c86f03 /server/tests/utils/video-comments.ts
parentd3ea89759104e6c14b00443526f2c2a0a13aeb97 (diff)
downloadPeerTube-e2e22e40f91018cfaf244e0df9a4a93e4f6d0502.tar.gz
PeerTube-e2e22e40f91018cfaf244e0df9a4a93e4f6d0502.tar.zst
PeerTube-e2e22e40f91018cfaf244e0df9a4a93e4f6d0502.zip
Add check params tests
Diffstat (limited to 'server/tests/utils/video-comments.ts')
-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)