aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/friends-advanced.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-03-26 18:39:01 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-03-26 18:39:01 +0200
commitb4c5ac97ffa3e16f837b7e2d72291656eefac812 (patch)
treebebc031f07e4a4d6cea370690b696f10273d9b47 /server/tests/api/friends-advanced.js
parentf6e692f5ee2a0e8e1fcb75df1949b354a014ad50 (diff)
downloadPeerTube-b4c5ac97ffa3e16f837b7e2d72291656eefac812.tar.gz
PeerTube-b4c5ac97ffa3e16f837b7e2d72291656eefac812.tar.zst
PeerTube-b4c5ac97ffa3e16f837b7e2d72291656eefac812.zip
Server: refractoring upload/update video test utils
Diffstat (limited to 'server/tests/api/friends-advanced.js')
-rw-r--r--server/tests/api/friends-advanced.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/server/tests/api/friends-advanced.js b/server/tests/api/friends-advanced.js
index 584c38c24..afa699914 100644
--- a/server/tests/api/friends-advanced.js
+++ b/server/tests/api/friends-advanced.js
@@ -31,14 +31,12 @@ describe('Test advanced friends', function () {
31 } 31 }
32 32
33 function uploadVideo (podNumber, callback) { 33 function uploadVideo (podNumber, callback) {
34 const name = 'my super video' 34 const videoAttributes = {
35 const category = 5 35 tags: [ 'tag1', 'tag2' ]
36 const description = 'my super description' 36 }
37 const tags = [ 'tag1', 'tag2' ]
38 const fixture = 'video_short.webm'
39 const server = servers[podNumber - 1] 37 const server = servers[podNumber - 1]
40 38
41 return videosUtils.uploadVideo(server.url, server.accessToken, name, category, description, tags, fixture, callback) 39 return videosUtils.uploadVideo(server.url, server.accessToken, videoAttributes, callback)
42 } 40 }
43 41
44 function getVideos (podNumber, callback) { 42 function getVideos (podNumber, callback) {