diff options
Diffstat (limited to 'server/tests/feeds')
-rw-r--r-- | server/tests/feeds/feeds.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/tests/feeds/feeds.ts b/server/tests/feeds/feeds.ts index 1d3c03d67..0ddb641e6 100644 --- a/server/tests/feeds/feeds.ts +++ b/server/tests/feeds/feeds.ts | |||
@@ -9,6 +9,7 @@ import { | |||
9 | createSingleServer, | 9 | createSingleServer, |
10 | doubleFollow, | 10 | doubleFollow, |
11 | makeGetRequest, | 11 | makeGetRequest, |
12 | makeRawRequest, | ||
12 | PeerTubeServer, | 13 | PeerTubeServer, |
13 | setAccessTokensToServers, | 14 | setAccessTokensToServers, |
14 | setDefaultChannelAvatar, | 15 | setDefaultChannelAvatar, |
@@ -306,6 +307,15 @@ describe('Test syndication feeds', () => { | |||
306 | 307 | ||
307 | await stopFfmpeg(ffmpeg) | 308 | await stopFfmpeg(ffmpeg) |
308 | }) | 309 | }) |
310 | |||
311 | it('Should have the channel avatar as feed icon', async function () { | ||
312 | const json = await servers[0].feed.getJSON({ feed: 'videos', query: { videoChannelId: rootChannelId }, ignoreCache: true }) | ||
313 | |||
314 | const jsonObj = JSON.parse(json) | ||
315 | const imageUrl = jsonObj.icon | ||
316 | expect(imageUrl).to.include('/lazy-static/avatars/') | ||
317 | await makeRawRequest(imageUrl) | ||
318 | }) | ||
309 | }) | 319 | }) |
310 | 320 | ||
311 | describe('Video comments feed', function () { | 321 | describe('Video comments feed', function () { |