diff options
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r-- | server/tests/api/videos/multiple-servers.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts index 42a1241f7..74c6b8462 100644 --- a/server/tests/api/videos/multiple-servers.ts +++ b/server/tests/api/videos/multiple-servers.ts | |||
@@ -452,7 +452,7 @@ describe('Test multiple servers', function () { | |||
452 | const res2 = await getVideo(servers[0].url, video.id) | 452 | const res2 = await getVideo(servers[0].url, video.id) |
453 | const videoDetails = res2.body | 453 | const videoDetails = res2.body |
454 | 454 | ||
455 | const file = videoDetails.files.find(f => f.resolution === 360) | 455 | const file = videoDetails.files.find(f => f.resolution.id === 360) |
456 | expect(file).not.to.be.undefined | 456 | expect(file).not.to.be.undefined |
457 | 457 | ||
458 | const torrent = await webtorrentAdd(file.magnetUri) | 458 | const torrent = await webtorrentAdd(file.magnetUri) |
@@ -705,10 +705,9 @@ describe('Test multiple servers', function () { | |||
705 | 705 | ||
706 | expect(baseVideo.name).to.equal(video.name) | 706 | expect(baseVideo.name).to.equal(video.name) |
707 | expect(baseVideo.uuid).to.equal(video.uuid) | 707 | expect(baseVideo.uuid).to.equal(video.uuid) |
708 | expect(baseVideo.category).to.equal(video.category) | 708 | expect(baseVideo.category.id).to.equal(video.category.id) |
709 | expect(baseVideo.language).to.equal(video.language) | 709 | expect(baseVideo.language.id).to.equal(video.language.id) |
710 | expect(baseVideo.licence).to.equal(video.licence) | 710 | expect(baseVideo.licence.id).to.equal(video.licence.id) |
711 | expect(baseVideo.category).to.equal(video.category) | ||
712 | expect(baseVideo.nsfw).to.equal(video.nsfw) | 711 | expect(baseVideo.nsfw).to.equal(video.nsfw) |
713 | expect(baseVideo.account.name).to.equal(video.account.name) | 712 | expect(baseVideo.account.name).to.equal(video.account.name) |
714 | expect(baseVideo.account.displayName).to.equal(video.account.displayName) | 713 | expect(baseVideo.account.displayName).to.equal(video.account.displayName) |