diff options
Diffstat (limited to 'server/tests/utils/videos.ts')
-rw-r--r-- | server/tests/utils/videos.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/tests/utils/videos.ts b/server/tests/utils/videos.ts index 509a2430a..83271beca 100644 --- a/server/tests/utils/videos.ts +++ b/server/tests/utils/videos.ts | |||
@@ -185,10 +185,13 @@ function uploadVideo (url: string, accessToken: string, videoAttributesArg: Vide | |||
185 | .field('name', attributes.name) | 185 | .field('name', attributes.name) |
186 | .field('category', attributes.category.toString()) | 186 | .field('category', attributes.category.toString()) |
187 | .field('licence', attributes.licence.toString()) | 187 | .field('licence', attributes.licence.toString()) |
188 | .field('language', attributes.language.toString()) | ||
189 | .field('nsfw', JSON.stringify(attributes.nsfw)) | 188 | .field('nsfw', JSON.stringify(attributes.nsfw)) |
190 | .field('description', attributes.description) | 189 | .field('description', attributes.description) |
191 | 190 | ||
191 | if (attributes.language !== undefined) { | ||
192 | req.field('language', attributes.language.toString()) | ||
193 | } | ||
194 | |||
192 | for (let i = 0; i < attributes.tags.length; i++) { | 195 | for (let i = 0; i < attributes.tags.length; i++) { |
193 | req.field('tags[' + i + ']', attributes.tags[i]) | 196 | req.field('tags[' + i + ']', attributes.tags[i]) |
194 | } | 197 | } |