X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fmultiple-pods.ts;h=3c6b3f6507c0888ed1f4a82e51aed85b3967082b;hb=afffe98839db7ccbfa9fb8b7d1413b97900fdc73;hp=fe4e4a036b3cd30bca0e2ebc9b6cc00b7504a2f8;hpb=5f04dd2f743961e0a06c29531cc3ccc9e4928d56;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/multiple-pods.ts b/server/tests/api/multiple-pods.ts index fe4e4a036..3c6b3f650 100644 --- a/server/tests/api/multiple-pods.ts +++ b/server/tests/api/multiple-pods.ts @@ -113,7 +113,7 @@ describe('Test multiple pods', function () { expect(video.tags).to.deep.equal([ 'tag1p1', 'tag2p1' ]) expect(dateIsValid(video.createdAt)).to.be.true expect(dateIsValid(video.updatedAt)).to.be.true - expect(video.author).to.equal('root') + expect(video.account).to.equal('root') const res2 = await getVideo(server.url, video.uuid) const videoDetails = res2.body @@ -202,7 +202,7 @@ describe('Test multiple pods', function () { expect(video.tags).to.deep.equal([ 'tag1p2', 'tag2p2', 'tag3p2' ]) expect(dateIsValid(video.createdAt)).to.be.true expect(dateIsValid(video.updatedAt)).to.be.true - expect(video.author).to.equal('user1') + expect(video.account).to.equal('user1') if (server.url !== 'http://localhost:9002') { expect(video.isLocal).to.be.false @@ -509,8 +509,8 @@ describe('Test multiple pods', function () { const video0 = videos.find(v => v.uuid === localVideosPod3[0]) const video1 = videos.find(v => v.uuid === localVideosPod3[1]) - expect(video0.views).to.equal(4) - expect(video1.views).to.equal(2) + expect(video0.views).to.equal(7) + expect(video1.views).to.equal(5) } }) @@ -696,7 +696,7 @@ describe('Test multiple pods', function () { expect(baseVideo.licence).to.equal(video.licence) expect(baseVideo.category).to.equal(video.category) expect(baseVideo.nsfw).to.equal(video.nsfw) - expect(baseVideo.author).to.equal(video.author) + expect(baseVideo.author).to.equal(video.account) expect(baseVideo.tags).to.deep.equal(video.tags) } })