aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-09-07 21:46:44 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-09-07 21:46:44 +0200
commite95561cdf195d2926e1856ed285c2b86960bc86f (patch)
tree7f25c340e307fcbb13f77769b64e75603520ecc6 /server/tests/utils
parent0cee28c1b251b00067681286d136ca947cf34808 (diff)
downloadPeerTube-e95561cdf195d2926e1856ed285c2b86960bc86f.tar.gz
PeerTube-e95561cdf195d2926e1856ed285c2b86960bc86f.tar.zst
PeerTube-e95561cdf195d2926e1856ed285c2b86960bc86f.zip
Upload a video to /videos/upload
This is an action, not a REST endpoint
Diffstat (limited to 'server/tests/utils')
-rw-r--r--server/tests/utils/videos.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/utils/videos.ts b/server/tests/utils/videos.ts
index 83271beca..0de506cd9 100644
--- a/server/tests/utils/videos.ts
+++ b/server/tests/utils/videos.ts
@@ -163,7 +163,7 @@ async function testVideoImage (url: string, imageName: string, imagePath: string
163} 163}
164 164
165function uploadVideo (url: string, accessToken: string, videoAttributesArg: VideoAttributes, specialStatus = 204) { 165function uploadVideo (url: string, accessToken: string, videoAttributesArg: VideoAttributes, specialStatus = 204) {
166 const path = '/api/v1/videos' 166 const path = '/api/v1/videos/upload'
167 167
168 // Default attributes 168 // Default attributes
169 let attributes = { 169 let attributes = {