aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/videos.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-03-28 21:19:46 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-03-28 21:19:46 +0200
commit31b59b477459d4f26ed8ef089a0e5553fb6a332b (patch)
tree70de15dc172045d01ad45718f55c22d5ca43b354 /server/tests/utils/videos.js
parentd07137b90b2b2b0c1e93a6f0e7bf8719b133027c (diff)
downloadPeerTube-31b59b477459d4f26ed8ef089a0e5553fb6a332b.tar.gz
PeerTube-31b59b477459d4f26ed8ef089a0e5553fb6a332b.tar.zst
PeerTube-31b59b477459d4f26ed8ef089a0e5553fb6a332b.zip
Server: add nsfw attribute
Diffstat (limited to 'server/tests/utils/videos.js')
-rw-r--r--server/tests/utils/videos.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/tests/utils/videos.js b/server/tests/utils/videos.js
index d1e0b7b14..3c7d99eec 100644
--- a/server/tests/utils/videos.js
+++ b/server/tests/utils/videos.js
@@ -218,6 +218,7 @@ function uploadVideo (url, accessToken, videoAttributesArg, specialStatus, end)
218 name: 'my super video', 218 name: 'my super video',
219 category: 5, 219 category: 5,
220 licence: 4, 220 licence: 4,
221 nsfw: true,
221 description: 'my super description', 222 description: 'my super description',
222 tags: [ 'tag' ], 223 tags: [ 'tag' ],
223 fixture: 'video_short.webm' 224 fixture: 'video_short.webm'
@@ -231,6 +232,7 @@ function uploadVideo (url, accessToken, videoAttributesArg, specialStatus, end)
231 .field('name', attributes.name) 232 .field('name', attributes.name)
232 .field('category', attributes.category) 233 .field('category', attributes.category)
233 .field('licence', attributes.licence) 234 .field('licence', attributes.licence)
235 .field('nsfw', attributes.nsfw)
234 .field('description', attributes.description) 236 .field('description', attributes.description)
235 237
236 for (let i = 0; i < attributes.tags.length; i++) { 238 for (let i = 0; i < attributes.tags.length; i++) {
@@ -265,6 +267,7 @@ function updateVideo (url, accessToken, id, attributes, specialStatus, end) {
265 if (attributes.name) req.field('name', attributes.name) 267 if (attributes.name) req.field('name', attributes.name)
266 if (attributes.category) req.field('category', attributes.category) 268 if (attributes.category) req.field('category', attributes.category)
267 if (attributes.licence) req.field('licence', attributes.licence) 269 if (attributes.licence) req.field('licence', attributes.licence)
270 if (attributes.nsfw) req.field('nsfw', attributes.nsfw)
268 if (attributes.description) req.field('description', attributes.description) 271 if (attributes.description) req.field('description', attributes.description)
269 272
270 if (attributes.tags) { 273 if (attributes.tags) {