aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/multiplePods.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-03-18 16:28:09 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-03-18 16:28:09 +0100
commit2df82d42cb57783cd90ccfc11fc8ffe4b95ebb70 (patch)
tree9c177f135a121ee34ed2e4f529dd2cacc3ad3f87 /server/tests/api/multiplePods.js
parentf0f5567b6918fc60c8cab15e13aec03a89a91dfb (diff)
downloadPeerTube-2df82d42cb57783cd90ccfc11fc8ffe4b95ebb70.tar.gz
PeerTube-2df82d42cb57783cd90ccfc11fc8ffe4b95ebb70.tar.zst
PeerTube-2df82d42cb57783cd90ccfc11fc8ffe4b95ebb70.zip
Change api output for videos
Diffstat (limited to 'server/tests/api/multiplePods.js')
-rw-r--r--server/tests/api/multiplePods.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/tests/api/multiplePods.js b/server/tests/api/multiplePods.js
index e8b182622..0e2355a55 100644
--- a/server/tests/api/multiplePods.js
+++ b/server/tests/api/multiplePods.js
@@ -205,8 +205,8 @@ describe('Test multiple pods', function () {
205 if (err) throw err 205 if (err) throw err
206 206
207 const video = res.body[0] 207 const video = res.body[0]
208 to_remove.push(res.body[2]._id) 208 to_remove.push(res.body[2].id)
209 to_remove.push(res.body[3]._id) 209 to_remove.push(res.body[3].id)
210 210
211 webtorrent.add(video.magnetUri, function (torrent) { 211 webtorrent.add(video.magnetUri, function (torrent) {
212 expect(torrent.files).to.exist 212 expect(torrent.files).to.exist
@@ -300,11 +300,11 @@ describe('Test multiple pods', function () {
300 const videos = res.body 300 const videos = res.body
301 expect(videos).to.be.an('array') 301 expect(videos).to.be.an('array')
302 expect(videos.length).to.equal(2) 302 expect(videos.length).to.equal(2)
303 expect(videos[0]._id).not.to.equal(videos[1]._id) 303 expect(videos[0].id).not.to.equal(videos[1].id)
304 expect(videos[0]._id).not.to.equal(to_remove[0]) 304 expect(videos[0].id).not.to.equal(to_remove[0])
305 expect(videos[1]._id).not.to.equal(to_remove[0]) 305 expect(videos[1].id).not.to.equal(to_remove[0])
306 expect(videos[0]._id).not.to.equal(to_remove[1]) 306 expect(videos[0].id).not.to.equal(to_remove[1])
307 expect(videos[1]._id).not.to.equal(to_remove[1]) 307 expect(videos[1].id).not.to.equal(to_remove[1])
308 308
309 callback() 309 callback()
310 }) 310 })