aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/utils/videos/videos.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/tests/utils/videos/videos.ts b/server/tests/utils/videos/videos.ts
index 923ca48f1..9105b5f13 100644
--- a/server/tests/utils/videos/videos.ts
+++ b/server/tests/utils/videos/videos.ts
@@ -251,10 +251,12 @@ async function uploadVideo (url: string, accessToken: string, videoAttributesArg
251 .field('name', attributes.name) 251 .field('name', attributes.name)
252 .field('nsfw', JSON.stringify(attributes.nsfw)) 252 .field('nsfw', JSON.stringify(attributes.nsfw))
253 .field('commentsEnabled', JSON.stringify(attributes.commentsEnabled)) 253 .field('commentsEnabled', JSON.stringify(attributes.commentsEnabled))
254 .field('description', attributes.description)
255 .field('privacy', attributes.privacy.toString()) 254 .field('privacy', attributes.privacy.toString())
256 .field('channelId', attributes.channelId) 255 .field('channelId', attributes.channelId)
257 256
257 if (attributes.description !== undefined) {
258 req.field('description', attributes.description)
259 }
258 if (attributes.language !== undefined) { 260 if (attributes.language !== undefined) {
259 req.field('language', attributes.language.toString()) 261 req.field('language', attributes.language.toString())
260 } 262 }