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/api/check-params/users.js | 8 ++------ server/tests/api/check-params/video-abuses.js | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) (limited to 'server/tests/api/check-params') diff --git a/server/tests/api/check-params/users.js b/server/tests/api/check-params/users.js index f6fbcf555..b04f9f4a6 100644 --- a/server/tests/api/check-params/users.js +++ b/server/tests/api/check-params/users.js @@ -50,12 +50,8 @@ describe('Test users API validators', function () { usersUtils.createUser(server.url, server.accessToken, username, password, next) }, function (next) { - const name = 'my super name for pod' - const category = 5 - const description = 'my super description for pod' - const tags = [ 'tag' ] - const file = 'video_short2.webm' - videosUtils.uploadVideo(server.url, server.accessToken, name, category, description, tags, file, next) + const videoAttributes = {} + videosUtils.uploadVideo(server.url, server.accessToken, videoAttributes, next) }, function (next) { videosUtils.getVideosList(server.url, function (err, res) { diff --git a/server/tests/api/check-params/video-abuses.js b/server/tests/api/check-params/video-abuses.js index 061b80be8..6dc5a7090 100644 --- a/server/tests/api/check-params/video-abuses.js +++ b/server/tests/api/check-params/video-abuses.js @@ -61,12 +61,8 @@ describe('Test video abuses API validators', function () { }, // Upload some videos on each pods function (next) { - const name = 'my super name for pod' - const category = 2 - const description = 'my super description for pod' - const tags = [ 'tag' ] - const file = 'video_short2.webm' - videosUtils.uploadVideo(server.url, server.accessToken, name, category, description, tags, file, next) + const videoAttributes = {} + videosUtils.uploadVideo(server.url, server.accessToken, videoAttributes, next) }, function (next) { videosUtils.getVideosList(server.url, function (err, res) { -- cgit v1.2.3