- const videoChannel = res.body
- expect(videoChannel.name).to.equal('second_video_channel')
- expect(videoChannel.displayName).to.equal('video channel updated')
- expect(videoChannel.description).to.equal('video channel description updated')
- expect(videoChannel.support).to.equal('video channel support text updated')
+ await deleteVideoChannelImage({
+ url: servers[0].url,
+ accessToken: servers[0].accessToken,
+ videoChannelName: 'second_video_channel',
+ type: 'avatar'
+ })
+
+ await waitJobs(servers)
+
+ for (const server of servers) {
+ const videoChannel = await findChannel(server, secondVideoChannelId)
+
+ expect(videoChannel.avatar).to.be.null
+ }
+ })
+
+ it('Should delete the video channel banner', async function () {
+ this.timeout(15000)
+
+ await deleteVideoChannelImage({
+ url: servers[0].url,
+ accessToken: servers[0].accessToken,
+ videoChannelName: 'second_video_channel',
+ type: 'banner'
+ })
+
+ await waitJobs(servers)
+
+ for (const server of servers) {
+ const videoChannel = await findChannel(server, secondVideoChannelId)
+
+ expect(videoChannel.banner).to.be.null
+ }