]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/videos/single-server.ts
Fix video comments display with deleted comments
[github/Chocobozzz/PeerTube.git] / server / tests / api / videos / single-server.ts
index 52c6800c1c590d146ca346ab3ce8e0f4d9a4afaa..da90223b820ba17abbb885e5706a88fcbe567f3a 100644 (file)
@@ -363,6 +363,14 @@ describe('Test a single server', function () {
     expect(videos.length).to.equal(2)
   })
 
+  it('Should list and sort by best in descending order', async function () {
+    const res = await getVideosListPagination(server.url, 0, 2, '-best')
+
+    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',