X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Fvideo-channels.ts;h=09a4bfa702629adbc63845dcd56cdc93db20334f;hb=43fc899a101c0fd266cc294dc573b256168bef18;hp=0f8227fd3cf62f62d961e079d7f817008ef67e15;hpb=9ca5728be138fad03a63b6701cd4164a9433509d;p=github%2FChocobozzz%2FPeerTube.git 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 () { } }) + it('Should still correctly list channels', async function () { + { + const body = await servers[0].channels.list({ start: 1, count: 1, sort: 'createdAt' }) + + expect(body.total).to.equal(3) + expect(body.data).to.have.lengthOf(1) + expect(body.data[0].name).to.equal('second_video_channel') + } + + { + const body = await servers[0].channels.listByAccount({ accountName, start: 1, count: 1, sort: 'createdAt' }) + + expect(body.total).to.equal(2) + expect(body.data).to.have.lengthOf(1) + expect(body.data[0].name).to.equal('second_video_channel') + } + }) + it('Should delete the video channel avatar', async function () { this.timeout(15000) await servers[0].channels.deleteImage({ channelName: 'second_video_channel', type: 'avatar' })