Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix search index tests

Chocobozzzb83b45878100
diff --git a/packages/tests/src/api/search/search-index.ts b/packages/tests/src/api/search/search-index.ts
index 617027bf7d..552dcc3902 100644
--- a/packages/tests/src/api/search/search-index.ts
+++ b/packages/tests/src/api/search/search-index.ts
@@ -113,12 +113,12 @@ describe('Test index search', function () {
expect(video.account.host).to.equal('framatube.org')
expect(video.account.name).to.equal('framasoft')
expect(video.account.url).to.equal('https://framatube.org/accounts/framasoft')
- expect(video.account.avatars.length).to.equal(2, 'Account should have one avatar image')
+ expect(video.account.avatars.length).to.equal(4, 'Account should have four avatar images')
expect(video.channel.host).to.equal('framatube.org')
expect(video.channel.name).to.equal('joinpeertube')
expect(video.channel.url).to.equal('https://framatube.org/video-channels/joinpeertube')
- expect(video.channel.avatars.length).to.equal(2, 'Channel should have one avatar image')
+ expect(video.channel.avatars.length).to.equal(4, 'Channel should have four avatar images')
}
const baseSearch: VideosSearchQuery = {
@@ -321,13 +321,13 @@ describe('Test index search', function () {
const videoChannel = body.data[0]
expect(videoChannel.url).to.equal('https://framatube.org/video-channels/bf54d359-cfad-4935-9d45-9d6be93f63e8')
expect(videoChannel.host).to.equal('framatube.org')
- expect(videoChannel.avatars.length).to.equal(2, 'Channel should have two avatar images')
+ expect(videoChannel.avatars.length).to.equal(4, 'Channel should have four avatar images')
expect(videoChannel.displayName).to.exist
expect(videoChannel.ownerAccount.url).to.equal('https://framatube.org/accounts/framasoft')
expect(videoChannel.ownerAccount.name).to.equal('framasoft')
expect(videoChannel.ownerAccount.host).to.equal('framatube.org')
- expect(videoChannel.ownerAccount.avatars.length).to.equal(2, 'Account should have two avatar images')
+ expect(videoChannel.ownerAccount.avatars.length).to.equal(4, 'Account should have four avatar images')
}
it('Should make a simple search and not have results', async function () {
@@ -393,7 +393,7 @@ describe('Test index search', function () {
expect(videoPlaylist.ownerAccount.url).to.equal('https://peertube2.cpy.re/accounts/chocobozzz')
expect(videoPlaylist.ownerAccount.name).to.equal('chocobozzz')
expect(videoPlaylist.ownerAccount.host).to.equal('peertube2.cpy.re')
- expect(videoPlaylist.ownerAccount.avatars.length).to.equal(2, 'Account should have two avatar images')
+ expect(videoPlaylist.ownerAccount.avatars.length).to.equal(4, 'Account should have four avatar images')
expect(videoPlaylist.videoChannel.url).to.equal('https://peertube2.cpy.re/video-channels/chocobozzz_channel')
expect(videoPlaylist.videoChannel.name).to.equal('chocobozzz_channel')