X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2FmultiplePods.js;h=0e2355a5534d167188945f66a9270659f249547e;hb=2df82d42cb57783cd90ccfc11fc8ffe4b95ebb70;hp=e8b1826221016119a2e6d849fa1bb884fb42f2db;hpb=f0f5567b6918fc60c8cab15e13aec03a89a91dfb;p=github%2FChocobozzz%2FPeerTube.git 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 () { if (err) throw err const video = res.body[0] - to_remove.push(res.body[2]._id) - to_remove.push(res.body[3]._id) + to_remove.push(res.body[2].id) + to_remove.push(res.body[3].id) webtorrent.add(video.magnetUri, function (torrent) { expect(torrent.files).to.exist @@ -300,11 +300,11 @@ describe('Test multiple pods', function () { const videos = res.body expect(videos).to.be.an('array') expect(videos.length).to.equal(2) - expect(videos[0]._id).not.to.equal(videos[1]._id) - expect(videos[0]._id).not.to.equal(to_remove[0]) - expect(videos[1]._id).not.to.equal(to_remove[0]) - expect(videos[0]._id).not.to.equal(to_remove[1]) - expect(videos[1]._id).not.to.equal(to_remove[1]) + expect(videos[0].id).not.to.equal(videos[1].id) + expect(videos[0].id).not.to.equal(to_remove[0]) + expect(videos[1].id).not.to.equal(to_remove[0]) + expect(videos[0].id).not.to.equal(to_remove[1]) + expect(videos[1].id).not.to.equal(to_remove[1]) callback() })