diff options
Diffstat (limited to 'server/tests/api')
-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 b74bc3e80..52c6800c1 100644 --- a/server/tests/api/videos/single-server.ts +++ b/server/tests/api/videos/single-server.ts | |||
@@ -355,6 +355,14 @@ describe('Test a single server', function () { | |||
355 | expect(videos.length).to.equal(2) | 355 | expect(videos.length).to.equal(2) |
356 | }) | 356 | }) |
357 | 357 | ||
358 | it('Should list and sort by hotness in descending order', async function () { | ||
359 | const res = await getVideosListPagination(server.url, 0, 2, '-hot') | ||
360 | |||
361 | const videos = res.body.data | ||
362 | expect(res.body.total).to.equal(6) | ||
363 | expect(videos.length).to.equal(2) | ||
364 | }) | ||
365 | |||
358 | it('Should update a video', async function () { | 366 | it('Should update a video', async function () { |
359 | const attributes = { | 367 | const attributes = { |
360 | name: 'my super video updated', | 368 | name: 'my super video updated', |