X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideo-abuse.js;h=1f64ec861ff3a9ce217daec0b56dfd93202b44f4;hb=fce897f326af14406ced2f71a00ae89ff297a550;hp=871054788dec75f121f0671389c18d94867a5af4;hpb=6e07c3de88791a0b342e0cc319590048117f9c2d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/video-abuse.js b/server/tests/api/video-abuse.js index 871054788..1f64ec861 100644 --- a/server/tests/api/video-abuse.js +++ b/server/tests/api/video-abuse.js @@ -38,27 +38,25 @@ describe('Test video abuses', function () { }) }, next) }, - // Pod 1 make friends too + // Pod 1 makes friend with pod 2 function (next) { const server = servers[0] podsUtils.makeFriends(server.url, server.accessToken, next) }, // Upload some videos on each pods function (next) { - const name = 'my super name for pod 1' - const category = 5 - const description = 'my super description for pod 1' - const tags = [ 'tag' ] - const file = 'video_short2.webm' - videosUtils.uploadVideo(servers[0].url, servers[0].accessToken, name, category, description, tags, file, next) + const videoAttributes = { + name: 'my super name for pod 1', + description: 'my super description for pod 1' + } + videosUtils.uploadVideo(servers[0].url, servers[0].accessToken, videoAttributes, next) }, function (next) { - const name = 'my super name for pod 2' - const category = 5 - const description = 'my super description for pod 2' - const tags = [ 'tag' ] - const file = 'video_short2.webm' - videosUtils.uploadVideo(servers[1].url, servers[1].accessToken, name, category, description, tags, file, next) + const videoAttributes = { + name: 'my super name for pod 2', + description: 'my super description for pod 2' + } + videosUtils.uploadVideo(servers[1].url, servers[1].accessToken, videoAttributes, next) }, // Wait videos propagation function (next) {