aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/video-channels.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/videos/video-channels.ts')
-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' })