aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/single-pod.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/api/single-pod.js
parentd07137b90b2b2b0c1e93a6f0e7bf8719b133027c (diff)
downloadPeerTube-31b59b477459d4f26ed8ef089a0e5553fb6a332b.tar.gz
PeerTube-31b59b477459d4f26ed8ef089a0e5553fb6a332b.tar.zst
PeerTube-31b59b477459d4f26ed8ef089a0e5553fb6a332b.zip
Server: add nsfw attribute
Diffstat (limited to 'server/tests/api/single-pod.js')
-rw-r--r--server/tests/api/single-pod.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/tests/api/single-pod.js b/server/tests/api/single-pod.js
index 6d7ebdc9b..aff6d56ec 100644
--- a/server/tests/api/single-pod.js
+++ b/server/tests/api/single-pod.js
@@ -86,6 +86,7 @@ describe('Test a single pod', function () {
86 const videoAttributes = { 86 const videoAttributes = {
87 name: 'my super name', 87 name: 'my super name',
88 category: 2, 88 category: 2,
89 nsfw: true,
89 licence: 6, 90 licence: 6,
90 tags: [ 'tag1', 'tag2', 'tag3' ] 91 tags: [ 'tag1', 'tag2', 'tag3' ]
91 } 92 }
@@ -109,6 +110,7 @@ describe('Test a single pod', function () {
109 expect(video.categoryLabel).to.equal('Films') 110 expect(video.categoryLabel).to.equal('Films')
110 expect(video.licence).to.equal(6) 111 expect(video.licence).to.equal(6)
111 expect(video.licenceLabel).to.equal('Attribution - Non Commercial - No Derivatives') 112 expect(video.licenceLabel).to.equal('Attribution - Non Commercial - No Derivatives')
113 expect(video.nsfw).to.be.truthy
112 expect(video.description).to.equal('my super description') 114 expect(video.description).to.equal('my super description')
113 expect(video.podHost).to.equal('localhost:9001') 115 expect(video.podHost).to.equal('localhost:9001')
114 expect(video.magnetUri).to.exist 116 expect(video.magnetUri).to.exist
@@ -148,6 +150,7 @@ describe('Test a single pod', function () {
148 expect(video.categoryLabel).to.equal('Films') 150 expect(video.categoryLabel).to.equal('Films')
149 expect(video.licence).to.equal(6) 151 expect(video.licence).to.equal(6)
150 expect(video.licenceLabel).to.equal('Attribution - Non Commercial - No Derivatives') 152 expect(video.licenceLabel).to.equal('Attribution - Non Commercial - No Derivatives')
153 expect(video.nsfw).to.be.truthy
151 expect(video.description).to.equal('my super description') 154 expect(video.description).to.equal('my super description')
152 expect(video.podHost).to.equal('localhost:9001') 155 expect(video.podHost).to.equal('localhost:9001')
153 expect(video.magnetUri).to.exist 156 expect(video.magnetUri).to.exist
@@ -191,6 +194,7 @@ describe('Test a single pod', function () {
191 expect(video.categoryLabel).to.equal('Films') 194 expect(video.categoryLabel).to.equal('Films')
192 expect(video.licence).to.equal(6) 195 expect(video.licence).to.equal(6)
193 expect(video.licenceLabel).to.equal('Attribution - Non Commercial - No Derivatives') 196 expect(video.licenceLabel).to.equal('Attribution - Non Commercial - No Derivatives')
197 expect(video.nsfw).to.be.truthy
194 expect(video.description).to.equal('my super description') 198 expect(video.description).to.equal('my super description')
195 expect(video.podHost).to.equal('localhost:9001') 199 expect(video.podHost).to.equal('localhost:9001')
196 expect(video.author).to.equal('root') 200 expect(video.author).to.equal('root')
@@ -250,6 +254,7 @@ describe('Test a single pod', function () {
250 expect(video.categoryLabel).to.equal('Films') 254 expect(video.categoryLabel).to.equal('Films')
251 expect(video.licence).to.equal(6) 255 expect(video.licence).to.equal(6)
252 expect(video.licenceLabel).to.equal('Attribution - Non Commercial - No Derivatives') 256 expect(video.licenceLabel).to.equal('Attribution - Non Commercial - No Derivatives')
257 expect(video.nsfw).to.be.truthy
253 expect(video.description).to.equal('my super description') 258 expect(video.description).to.equal('my super description')
254 expect(video.podHost).to.equal('localhost:9001') 259 expect(video.podHost).to.equal('localhost:9001')
255 expect(video.author).to.equal('root') 260 expect(video.author).to.equal('root')
@@ -347,6 +352,7 @@ describe('Test a single pod', function () {
347 description: video + ' description', 352 description: video + ' description',
348 category: 2, 353 category: 2,
349 licence: 1, 354 licence: 1,
355 nsfw: true,
350 tags: [ 'tag1', 'tag2', 'tag3' ], 356 tags: [ 'tag1', 'tag2', 'tag3' ],
351 fixture: video 357 fixture: video
352 } 358 }
@@ -572,6 +578,7 @@ describe('Test a single pod', function () {
572 name: 'my super video updated', 578 name: 'my super video updated',
573 category: 4, 579 category: 4,
574 licence: 2, 580 licence: 2,
581 nsfw: false,
575 description: 'my super description updated', 582 description: 'my super description updated',
576 tags: [ 'tagup1', 'tagup2' ] 583 tags: [ 'tagup1', 'tagup2' ]
577 } 584 }
@@ -591,6 +598,7 @@ describe('Test a single pod', function () {
591 expect(video.categoryLabel).to.equal('Art') 598 expect(video.categoryLabel).to.equal('Art')
592 expect(video.licence).to.equal(2) 599 expect(video.licence).to.equal(2)
593 expect(video.licenceLabel).to.equal('Attribution - Share Alike') 600 expect(video.licenceLabel).to.equal('Attribution - Share Alike')
601 expect(video.nsfw).to.be.truthy
594 expect(video.description).to.equal('my super description updated') 602 expect(video.description).to.equal('my super description updated')
595 expect(video.podHost).to.equal('localhost:9001') 603 expect(video.podHost).to.equal('localhost:9001')
596 expect(video.author).to.equal('root') 604 expect(video.author).to.equal('root')
@@ -632,6 +640,7 @@ describe('Test a single pod', function () {
632 expect(video.categoryLabel).to.equal('Art') 640 expect(video.categoryLabel).to.equal('Art')
633 expect(video.licence).to.equal(2) 641 expect(video.licence).to.equal(2)
634 expect(video.licenceLabel).to.equal('Attribution - Share Alike') 642 expect(video.licenceLabel).to.equal('Attribution - Share Alike')
643 expect(video.nsfw).to.be.truthy
635 expect(video.description).to.equal('my super description updated') 644 expect(video.description).to.equal('my super description updated')
636 expect(video.podHost).to.equal('localhost:9001') 645 expect(video.podHost).to.equal('localhost:9001')
637 expect(video.author).to.equal('root') 646 expect(video.author).to.equal('root')
@@ -663,6 +672,7 @@ describe('Test a single pod', function () {
663 expect(video.categoryLabel).to.equal('Art') 672 expect(video.categoryLabel).to.equal('Art')
664 expect(video.licence).to.equal(2) 673 expect(video.licence).to.equal(2)
665 expect(video.licenceLabel).to.equal('Attribution - Share Alike') 674 expect(video.licenceLabel).to.equal('Attribution - Share Alike')
675 expect(video.nsfw).to.be.truthy
666 expect(video.description).to.equal('hello everybody') 676 expect(video.description).to.equal('hello everybody')
667 expect(video.podHost).to.equal('localhost:9001') 677 expect(video.podHost).to.equal('localhost:9001')
668 expect(video.author).to.equal('root') 678 expect(video.author).to.equal('root')