createSingleServer,
doubleFollow,
makeGetRequest,
+ makeRawRequest,
PeerTubeServer,
setAccessTokensToServers,
setDefaultChannelAvatar,
await stopFfmpeg(ffmpeg)
})
+
+ it('Should have the channel avatar as feed icon', async function () {
+ const json = await servers[0].feed.getJSON({ feed: 'videos', query: { videoChannelId: rootChannelId }, ignoreCache: true })
+
+ const jsonObj = JSON.parse(json)
+ const imageUrl = jsonObj.icon
+ expect(imageUrl).to.include('/lazy-static/avatars/')
+ await makeRawRequest({ url: imageUrl, expectedStatus: HttpStatusCode.OK_200 })
+ })
})
describe('Video comments feed', function () {