Add trending sort tests

pull/1011/head
Chocobozzz 2018-09-04 08:58:23 +02:00
parent 558187a72f
commit 0b74c74abe
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 8 additions and 0 deletions

View File

@ -339,6 +339,14 @@ describe('Test a single server', function () {
videoId = videos[3].uuid
})
it('Should list and sort by trending in descending order', async function () {
const res = await getVideosListPagination(server.url, 0, 2, '-trending')
const videos = res.body.data
expect(res.body.total).to.equal(6)
expect(videos.length).to.equal(2)
})
it('Should update a video', async function () {
const attributes = {
name: 'my super video updated',