diff options
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/videos/single-server.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/tests/api/videos/single-server.ts b/server/tests/api/videos/single-server.ts index 89408fec6..e3d62b7a0 100644 --- a/server/tests/api/videos/single-server.ts +++ b/server/tests/api/videos/single-server.ts | |||
@@ -339,6 +339,14 @@ describe('Test a single server', function () { | |||
339 | videoId = videos[3].uuid | 339 | videoId = videos[3].uuid |
340 | }) | 340 | }) |
341 | 341 | ||
342 | it('Should list and sort by trending in descending order', async function () { | ||
343 | const res = await getVideosListPagination(server.url, 0, 2, '-trending') | ||
344 | |||
345 | const videos = res.body.data | ||
346 | expect(res.body.total).to.equal(6) | ||
347 | expect(videos.length).to.equal(2) | ||
348 | }) | ||
349 | |||
342 | it('Should update a video', async function () { | 350 | it('Should update a video', async function () { |
343 | const attributes = { | 351 | const attributes = { |
344 | name: 'my super video updated', | 352 | name: 'my super video updated', |