aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-03-02 08:40:50 +0100
committerChocobozzz <me@florianbigard.com>2022-03-02 08:40:57 +0100
commit135c38bbc5bdbbeb8b9748220b0daa81c7b17f27 (patch)
tree0af8e048e8f12c4e0a2d9779fd2896e58d5ed0b7 /server/tests
parent8b8bd0228dfa3fd6097e0d12232ce72c7275b489 (diff)
downloadPeerTube-135c38bbc5bdbbeb8b9748220b0daa81c7b17f27.tar.gz
PeerTube-135c38bbc5bdbbeb8b9748220b0daa81c7b17f27.tar.zst
PeerTube-135c38bbc5bdbbeb8b9748220b0daa81c7b17f27.zip
Fix search index tests
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/search/search-index.ts4
1 files 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 () {
398 expect(videoPlaylist.ownerAccount.host).to.equal('peertube2.cpy.re') 398 expect(videoPlaylist.ownerAccount.host).to.equal('peertube2.cpy.re')
399 // TODO: remove, deprecated in 4.2 399 // TODO: remove, deprecated in 4.2
400 expect(videoPlaylist.ownerAccount.avatar).to.exist 400 expect(videoPlaylist.ownerAccount.avatar).to.exist
401 expect(videoPlaylist.ownerAccount.avatars.length).to.equal(1, 'Account should have two avatar images') 401 expect(videoPlaylist.ownerAccount.avatars.length).to.equal(2, 'Account should have two avatar images')
402 402
403 expect(videoPlaylist.videoChannel.url).to.equal('https://peertube2.cpy.re/video-channels/chocobozzz_channel') 403 expect(videoPlaylist.videoChannel.url).to.equal('https://peertube2.cpy.re/video-channels/chocobozzz_channel')
404 expect(videoPlaylist.videoChannel.name).to.equal('chocobozzz_channel') 404 expect(videoPlaylist.videoChannel.name).to.equal('chocobozzz_channel')
405 expect(videoPlaylist.videoChannel.host).to.equal('peertube2.cpy.re') 405 expect(videoPlaylist.videoChannel.host).to.equal('peertube2.cpy.re')
406 // TODO: remove, deprecated in 4.2 406 // TODO: remove, deprecated in 4.2
407 expect(videoPlaylist.videoChannel.avatar).to.exist 407 expect(videoPlaylist.videoChannel.avatar).to.exist
408 expect(videoPlaylist.videoChannel.avatars.length).to.equal(1, 'Channel should have two avatar images') 408 expect(videoPlaylist.videoChannel.avatars.length).to.equal(2, 'Channel should have two avatar images')
409 } 409 }
410 410
411 it('Should make a simple search and not have results', async function () { 411 it('Should make a simple search and not have results', async function () {