X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Fsingle-server.ts;h=72f833ec2da9eb25f2b3d7810bd27bbea0b45c37;hb=d102de1b38f2877463529c3b27bd35ffef4fd8bf;hp=e8e981e556cecf68d4dd9fa4da3bf3843db01369;hpb=2fe978744e5b74eb824e4d79c1bb9b840169f125;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/videos/single-server.ts b/server/tests/api/videos/single-server.ts index e8e981e55..72f833ec2 100644 --- a/server/tests/api/videos/single-server.ts +++ b/server/tests/api/videos/single-server.ts @@ -164,14 +164,14 @@ describe('Test a single server', function () { expect(data.length).to.equal(1) const video = data[0] - await completeVideoCheck(server, video, getCheckAttributes()) + await completeVideoCheck({ server, originServer: server, videoUUID: video.uuid, attributes: getCheckAttributes() }) }) it('Should get the video by UUID', async function () { this.timeout(5000) const video = await server.videos.get({ id: videoUUID }) - await completeVideoCheck(server, video, getCheckAttributes()) + await completeVideoCheck({ server, originServer: server, videoUUID: video.uuid, attributes: getCheckAttributes() }) }) it('Should have the views updated', async function () { @@ -360,7 +360,7 @@ describe('Test a single server', function () { const video = await server.videos.get({ id: videoId }) - await completeVideoCheck(server, video, updateCheckAttributes()) + await completeVideoCheck({ server, originServer: server, videoUUID: video.uuid, attributes: updateCheckAttributes() }) }) it('Should update only the tags of a video', async function () { @@ -371,7 +371,12 @@ describe('Test a single server', function () { const video = await server.videos.get({ id: videoId }) - await completeVideoCheck(server, video, Object.assign(updateCheckAttributes(), attributes)) + await completeVideoCheck({ + server, + originServer: server, + videoUUID: video.uuid, + attributes: Object.assign(updateCheckAttributes(), attributes) + }) }) it('Should update only the description of a video', async function () { @@ -382,8 +387,12 @@ describe('Test a single server', function () { const video = await server.videos.get({ id: videoId }) - const expectedAttributes = Object.assign(updateCheckAttributes(), { tags: [ 'supertag', 'tag1', 'tag2' ] }, attributes) - await completeVideoCheck(server, video, expectedAttributes) + await completeVideoCheck({ + server, + originServer: server, + videoUUID: video.uuid, + attributes: Object.assign(updateCheckAttributes(), { tags: [ 'supertag', 'tag1', 'tag2' ] }, attributes) + }) }) it('Should like a video', async function () {