diff options
-rw-r--r-- | server/tests/api/search/search-index.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/search/search-index.ts b/server/tests/api/search/search-index.ts index 287abe455..53b91e1cb 100644 --- a/server/tests/api/search/search-index.ts +++ b/server/tests/api/search/search-index.ts | |||
@@ -136,14 +136,14 @@ describe('Test index search', function () { | |||
136 | expect(video.account.url).to.equal('https://framatube.org/accounts/framasoft') | 136 | expect(video.account.url).to.equal('https://framatube.org/accounts/framasoft') |
137 | // TODO: remove, deprecated in 4.2 | 137 | // TODO: remove, deprecated in 4.2 |
138 | expect(video.account.avatar).to.exist | 138 | expect(video.account.avatar).to.exist |
139 | expect(video.account.avatars.length).to.equal(1, 'Account should have one avatar image') | 139 | expect(video.account.avatars.length).to.equal(2, 'Account should have one avatar image') |
140 | 140 | ||
141 | expect(video.channel.host).to.equal('framatube.org') | 141 | expect(video.channel.host).to.equal('framatube.org') |
142 | expect(video.channel.name).to.equal('joinpeertube') | 142 | expect(video.channel.name).to.equal('joinpeertube') |
143 | expect(video.channel.url).to.equal('https://framatube.org/video-channels/joinpeertube') | 143 | expect(video.channel.url).to.equal('https://framatube.org/video-channels/joinpeertube') |
144 | // TODO: remove, deprecated in 4.2 | 144 | // TODO: remove, deprecated in 4.2 |
145 | expect(video.channel.avatar).to.exist | 145 | expect(video.channel.avatar).to.exist |
146 | expect(video.channel.avatars.length).to.equal(1, 'Channel should have one avatar image') | 146 | expect(video.channel.avatars.length).to.equal(2, 'Channel should have one avatar image') |
147 | } | 147 | } |
148 | 148 | ||
149 | const baseSearch: VideosSearchQuery = { | 149 | const baseSearch: VideosSearchQuery = { |
@@ -322,7 +322,7 @@ describe('Test index search', function () { | |||
322 | expect(videoChannel.host).to.equal('framatube.org') | 322 | expect(videoChannel.host).to.equal('framatube.org') |
323 | // TODO: remove, deprecated in 4.2 | 323 | // TODO: remove, deprecated in 4.2 |
324 | expect(videoChannel.avatar).to.exist | 324 | expect(videoChannel.avatar).to.exist |
325 | expect(videoChannel.avatars.length).to.equal(1, 'Channel should have two avatar images') | 325 | expect(videoChannel.avatars.length).to.equal(2, 'Channel should have two avatar images') |
326 | expect(videoChannel.displayName).to.exist | 326 | expect(videoChannel.displayName).to.exist |
327 | 327 | ||
328 | expect(videoChannel.ownerAccount.url).to.equal('https://framatube.org/accounts/framasoft') | 328 | expect(videoChannel.ownerAccount.url).to.equal('https://framatube.org/accounts/framasoft') |
@@ -330,7 +330,7 @@ describe('Test index search', function () { | |||
330 | expect(videoChannel.ownerAccount.host).to.equal('framatube.org') | 330 | expect(videoChannel.ownerAccount.host).to.equal('framatube.org') |
331 | // TODO: remove, deprecated in 4.2 | 331 | // TODO: remove, deprecated in 4.2 |
332 | expect(videoChannel.ownerAccount.avatar).to.exist | 332 | expect(videoChannel.ownerAccount.avatar).to.exist |
333 | expect(videoChannel.ownerAccount.avatars.length).to.equal(1, 'Account should have two avatar images') | 333 | expect(videoChannel.ownerAccount.avatars.length).to.equal(2, 'Account should have two avatar images') |
334 | } | 334 | } |
335 | 335 | ||
336 | it('Should make a simple search and not have results', async function () { | 336 | it('Should make a simple search and not have results', async function () { |