From 135c38bbc5bdbbeb8b9748220b0daa81c7b17f27 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 2 Mar 2022 08:40:50 +0100 Subject: Fix search index tests --- server/tests/api/search/search-index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/tests/api/search/search-index.ts b/server/tests/api/search/search-index.ts index ae933449f..b18d40b2a 100644 --- a/server/tests/api/search/search-index.ts +++ b/server/tests/api/search/search-index.ts @@ -398,14 +398,14 @@ describe('Test index search', function () { expect(videoPlaylist.ownerAccount.host).to.equal('peertube2.cpy.re') // TODO: remove, deprecated in 4.2 expect(videoPlaylist.ownerAccount.avatar).to.exist - expect(videoPlaylist.ownerAccount.avatars.length).to.equal(1, 'Account should have two avatar images') + expect(videoPlaylist.ownerAccount.avatars.length).to.equal(2, 'Account should have two avatar images') expect(videoPlaylist.videoChannel.url).to.equal('https://peertube2.cpy.re/video-channels/chocobozzz_channel') expect(videoPlaylist.videoChannel.name).to.equal('chocobozzz_channel') expect(videoPlaylist.videoChannel.host).to.equal('peertube2.cpy.re') // TODO: remove, deprecated in 4.2 expect(videoPlaylist.videoChannel.avatar).to.exist - expect(videoPlaylist.videoChannel.avatars.length).to.equal(1, 'Channel should have two avatar images') + expect(videoPlaylist.videoChannel.avatars.length).to.equal(2, 'Channel should have two avatar images') } it('Should make a simple search and not have results', async function () { -- cgit v1.2.3