From b4c5ac97ffa3e16f837b7e2d72291656eefac812 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 26 Mar 2017 18:39:01 +0200 Subject: Server: refractoring upload/update video test utils --- server/tests/real-world/tools/upload.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'server/tests/real-world/tools') diff --git a/server/tests/real-world/tools/upload.js b/server/tests/real-world/tools/upload.js index 49076ee2a..856251c7f 100644 --- a/server/tests/real-world/tools/upload.js +++ b/server/tests/real-world/tools/upload.js @@ -49,10 +49,17 @@ function list (val) { return val.split(',') } -function upload (url, accessToken, name, category, description, tags, file) { +function upload (url, accessToken, name, category, description, tags, fixture) { console.log('Uploading %s video...', program.name) - utils.uploadVideo(url, accessToken, name, category, description, tags, file, function (err) { + const videoAttributes = { + name, + category, + description, + tags, + fixture + } + utils.uploadVideo(url, accessToken, videoAttributes, function (err) { if (err) throw err console.log('Video uploaded.') -- cgit v1.2.3