aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/videos/videos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/videos/videos.ts')
-rw-r--r--shared/extra-utils/videos/videos.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/shared/extra-utils/videos/videos.ts b/shared/extra-utils/videos/videos.ts
index b5a07b792..c78563232 100644
--- a/shared/extra-utils/videos/videos.ts
+++ b/shared/extra-utils/videos/videos.ts
@@ -362,6 +362,10 @@ async function uploadVideo (url: string, accessToken: string, videoAttributesArg
362 .field('privacy', attributes.privacy.toString()) 362 .field('privacy', attributes.privacy.toString())
363 .field('channelId', attributes.channelId) 363 .field('channelId', attributes.channelId)
364 364
365 if (attributes.support !== undefined) {
366 req.field('support', attributes.support)
367 }
368
365 if (attributes.description !== undefined) { 369 if (attributes.description !== undefined) {
366 req.field('description', attributes.description) 370 req.field('description', attributes.description)
367 } 371 }
@@ -524,7 +528,6 @@ async function completeVideoCheck (
524 expect(video.nsfw).to.equal(attributes.nsfw) 528 expect(video.nsfw).to.equal(attributes.nsfw)
525 expect(video.description).to.equal(attributes.description) 529 expect(video.description).to.equal(attributes.description)
526 expect(video.account.id).to.be.a('number') 530 expect(video.account.id).to.be.a('number')
527 expect(video.account.uuid).to.be.a('string')
528 expect(video.account.host).to.equal(attributes.account.host) 531 expect(video.account.host).to.equal(attributes.account.host)
529 expect(video.account.name).to.equal(attributes.account.name) 532 expect(video.account.name).to.equal(attributes.account.name)
530 expect(video.channel.displayName).to.equal(attributes.channel.displayName) 533 expect(video.channel.displayName).to.equal(attributes.channel.displayName)
@@ -568,8 +571,8 @@ async function completeVideoCheck (
568 expect(file).not.to.be.undefined 571 expect(file).not.to.be.undefined
569 572
570 let extension = extname(attributes.fixture) 573 let extension = extname(attributes.fixture)
571 // Transcoding enabled on server 2, extension will always be .mp4 574 // Transcoding enabled: extension will always be .mp4
572 if (attributes.account.host === 'localhost:9002') extension = '.mp4' 575 if (attributes.files.length > 1) extension = '.mp4'
573 576
574 const magnetUri = file.magnetUri 577 const magnetUri = file.magnetUri
575 expect(file.magnetUri).to.have.lengthOf.above(2) 578 expect(file.magnetUri).to.have.lengthOf.above(2)