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:
parent
f6e692f5ee
commit
b4c5ac97ff
12 changed files with 158 additions and 146 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue