aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-03-21 09:26:48 +0100
committerChocobozzz <me@florianbigard.com>2022-03-21 09:26:48 +0100
commit43fc899a101c0fd266cc294dc573b256168bef18 (patch)
tree3082259de466145a8b0ba3855dfb92d0c1ef0fb8 /server/tests/api
parent9ca5728be138fad03a63b6701cd4164a9433509d (diff)
downloadPeerTube-43fc899a101c0fd266cc294dc573b256168bef18.tar.gz
PeerTube-43fc899a101c0fd266cc294dc573b256168bef18.tar.zst
PeerTube-43fc899a101c0fd266cc294dc573b256168bef18.zip
Fix channels list count
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/videos/video-channels.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/server/tests/api/videos/video-channels.ts b/server/tests/api/videos/video-channels.ts
index 0f8227fd3..09a4bfa70 100644
--- a/server/tests/api/videos/video-channels.ts
+++ b/server/tests/api/videos/video-channels.ts
@@ -325,6 +325,24 @@ describe('Test video channels', function () {
325 } 325 }
326 }) 326 })
327 327
328 it('Should still correctly list channels', async function () {
329 {
330 const body = await servers[0].channels.list({ start: 1, count: 1, sort: 'createdAt' })
331
332 expect(body.total).to.equal(3)
333 expect(body.data).to.have.lengthOf(1)
334 expect(body.data[0].name).to.equal('second_video_channel')
335 }
336
337 {
338 const body = await servers[0].channels.listByAccount({ accountName, start: 1, count: 1, sort: 'createdAt' })
339
340 expect(body.total).to.equal(2)
341 expect(body.data).to.have.lengthOf(1)
342 expect(body.data[0].name).to.equal('second_video_channel')
343 }
344 })
345
328 it('Should delete the video channel avatar', async function () { 346 it('Should delete the video channel avatar', async function () {
329 this.timeout(15000) 347 this.timeout(15000)
330 await servers[0].channels.deleteImage({ channelName: 'second_video_channel', type: 'avatar' }) 348 await servers[0].channels.deleteImage({ channelName: 'second_video_channel', type: 'avatar' })