createSingleServer,
doubleFollow,
makeGetRequest,
+ makeRawRequest,
PeerTubeServer,
setAccessTokensToServers,
setDefaultChannelAvatar,
chai.use(require('chai-json-schema'))
chai.config.includeStack = true
+const expect = chai.expect
+
describe('Test syndication feeds', () => {
let servers: PeerTubeServer[] = []
let serverHLSOnly: PeerTubeServer
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 () {