diff options
Diffstat (limited to 'server/tests/api')
-rw-r--r-- | server/tests/api/search/search-index.ts | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/server/tests/api/search/search-index.ts b/server/tests/api/search/search-index.ts index 21473b6bf..cbe628ccc 100644 --- a/server/tests/api/search/search-index.ts +++ b/server/tests/api/search/search-index.ts | |||
@@ -107,15 +107,11 @@ describe('Test index search', function () { | |||
107 | expect(video.account.host).to.equal('framatube.org') | 107 | expect(video.account.host).to.equal('framatube.org') |
108 | expect(video.account.name).to.equal('framasoft') | 108 | expect(video.account.name).to.equal('framasoft') |
109 | expect(video.account.url).to.equal('https://framatube.org/accounts/framasoft') | 109 | expect(video.account.url).to.equal('https://framatube.org/accounts/framasoft') |
110 | // TODO: remove, deprecated in 4.2 | ||
111 | expect(video.account.avatar).to.exist | ||
112 | expect(video.account.avatars.length).to.equal(2, 'Account should have one avatar image') | 110 | expect(video.account.avatars.length).to.equal(2, 'Account should have one avatar image') |
113 | 111 | ||
114 | expect(video.channel.host).to.equal('framatube.org') | 112 | expect(video.channel.host).to.equal('framatube.org') |
115 | expect(video.channel.name).to.equal('joinpeertube') | 113 | expect(video.channel.name).to.equal('joinpeertube') |
116 | expect(video.channel.url).to.equal('https://framatube.org/video-channels/joinpeertube') | 114 | expect(video.channel.url).to.equal('https://framatube.org/video-channels/joinpeertube') |
117 | // TODO: remove, deprecated in 4.2 | ||
118 | expect(video.channel.avatar).to.exist | ||
119 | expect(video.channel.avatars.length).to.equal(2, 'Channel should have one avatar image') | 115 | expect(video.channel.avatars.length).to.equal(2, 'Channel should have one avatar image') |
120 | } | 116 | } |
121 | 117 | ||
@@ -293,16 +289,12 @@ describe('Test index search', function () { | |||
293 | const videoChannel = body.data[0] | 289 | const videoChannel = body.data[0] |
294 | expect(videoChannel.url).to.equal('https://framatube.org/video-channels/bf54d359-cfad-4935-9d45-9d6be93f63e8') | 290 | expect(videoChannel.url).to.equal('https://framatube.org/video-channels/bf54d359-cfad-4935-9d45-9d6be93f63e8') |
295 | expect(videoChannel.host).to.equal('framatube.org') | 291 | expect(videoChannel.host).to.equal('framatube.org') |
296 | // TODO: remove, deprecated in 4.2 | ||
297 | expect(videoChannel.avatar).to.exist | ||
298 | expect(videoChannel.avatars.length).to.equal(2, 'Channel should have two avatar images') | 292 | expect(videoChannel.avatars.length).to.equal(2, 'Channel should have two avatar images') |
299 | expect(videoChannel.displayName).to.exist | 293 | expect(videoChannel.displayName).to.exist |
300 | 294 | ||
301 | expect(videoChannel.ownerAccount.url).to.equal('https://framatube.org/accounts/framasoft') | 295 | expect(videoChannel.ownerAccount.url).to.equal('https://framatube.org/accounts/framasoft') |
302 | expect(videoChannel.ownerAccount.name).to.equal('framasoft') | 296 | expect(videoChannel.ownerAccount.name).to.equal('framasoft') |
303 | expect(videoChannel.ownerAccount.host).to.equal('framatube.org') | 297 | expect(videoChannel.ownerAccount.host).to.equal('framatube.org') |
304 | // TODO: remove, deprecated in 4.2 | ||
305 | expect(videoChannel.ownerAccount.avatar).to.exist | ||
306 | expect(videoChannel.ownerAccount.avatars.length).to.equal(2, 'Account should have two avatar images') | 298 | expect(videoChannel.ownerAccount.avatars.length).to.equal(2, 'Account should have two avatar images') |
307 | } | 299 | } |
308 | 300 | ||
@@ -369,15 +361,11 @@ describe('Test index search', function () { | |||
369 | expect(videoPlaylist.ownerAccount.url).to.equal('https://peertube2.cpy.re/accounts/chocobozzz') | 361 | expect(videoPlaylist.ownerAccount.url).to.equal('https://peertube2.cpy.re/accounts/chocobozzz') |
370 | expect(videoPlaylist.ownerAccount.name).to.equal('chocobozzz') | 362 | expect(videoPlaylist.ownerAccount.name).to.equal('chocobozzz') |
371 | expect(videoPlaylist.ownerAccount.host).to.equal('peertube2.cpy.re') | 363 | expect(videoPlaylist.ownerAccount.host).to.equal('peertube2.cpy.re') |
372 | // TODO: remove, deprecated in 4.2 | ||
373 | expect(videoPlaylist.ownerAccount.avatar).to.exist | ||
374 | expect(videoPlaylist.ownerAccount.avatars.length).to.equal(2, 'Account should have two avatar images') | 364 | expect(videoPlaylist.ownerAccount.avatars.length).to.equal(2, 'Account should have two avatar images') |
375 | 365 | ||
376 | expect(videoPlaylist.videoChannel.url).to.equal('https://peertube2.cpy.re/video-channels/chocobozzz_channel') | 366 | expect(videoPlaylist.videoChannel.url).to.equal('https://peertube2.cpy.re/video-channels/chocobozzz_channel') |
377 | expect(videoPlaylist.videoChannel.name).to.equal('chocobozzz_channel') | 367 | expect(videoPlaylist.videoChannel.name).to.equal('chocobozzz_channel') |
378 | expect(videoPlaylist.videoChannel.host).to.equal('peertube2.cpy.re') | 368 | expect(videoPlaylist.videoChannel.host).to.equal('peertube2.cpy.re') |
379 | // TODO: remove, deprecated in 4.2 | ||
380 | expect(videoPlaylist.videoChannel.avatar).to.exist | ||
381 | expect(videoPlaylist.videoChannel.avatars.length).to.equal(2, 'Channel should have two avatar images') | 369 | expect(videoPlaylist.videoChannel.avatars.length).to.equal(2, 'Channel should have two avatar images') |
382 | } | 370 | } |
383 | 371 | ||