diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-27 10:12:18 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-27 10:12:18 +0100 |
commit | e2e22e40f91018cfaf244e0df9a4a93e4f6d0502 (patch) | |
tree | 73950d68cc7f4df5b21625532ed654bc52c86f03 /server/tests/utils/video-comments.ts | |
parent | d3ea89759104e6c14b00443526f2c2a0a13aeb97 (diff) | |
download | PeerTube-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.ts | 2 |
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 | ||
28 | function addVideoCommentThread (url: string, token: string, videoId: number, text: string, expectedStatus = 200) { | 28 | function 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) |