1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Server: refractoring upload/update video test utils

This commit is contained in:
Chocobozzz 2017-03-26 18:39:01 +02:00
parent f6e692f5ee
commit b4c5ac97ff
12 changed files with 158 additions and 146 deletions

View file

@ -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) {