aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/multiple-servers.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-19 12:36:41 +0100
committerChocobozzz <me@florianbigard.com>2018-03-19 14:20:04 +0100
commit5d00a3d7aa4309f1da5ac7d6e3ed63181eb34952 (patch)
tree924c46daaac9ef56108d8c449f934b6de344ae72 /server/tests/api/videos/multiple-servers.ts
parent09700934b90e2ac7b1b9ed1694d9d4d52735e2e1 (diff)
downloadPeerTube-5d00a3d7aa4309f1da5ac7d6e3ed63181eb34952.tar.gz
PeerTube-5d00a3d7aa4309f1da5ac7d6e3ed63181eb34952.tar.zst
PeerTube-5d00a3d7aa4309f1da5ac7d6e3ed63181eb34952.zip
Update the api documentation
Diffstat (limited to 'server/tests/api/videos/multiple-servers.ts')
-rw-r--r--server/tests/api/videos/multiple-servers.ts9
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)