Fix search index tests

pull/4840/head
Chocobozzz 2022-03-02 08:40:50 +01:00
parent 8b8bd0228d
commit 135c38bbc5
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 2 deletions

View File

@ -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 () {