diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-04-07 12:13:37 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-04-07 12:13:37 +0200 |
commit | 3092476e64d09b449b4ad4f5198024afec1b22ca (patch) | |
tree | f2d2bd33578e122188cd2297f60e12813bffdbb7 /server/tests/api/multiple-pods.js | |
parent | 023553a2bde74c5765b5ea679fc04128c27f18a0 (diff) | |
download | PeerTube-3092476e64d09b449b4ad4f5198024afec1b22ca.tar.gz PeerTube-3092476e64d09b449b4ad4f5198024afec1b22ca.tar.zst PeerTube-3092476e64d09b449b4ad4f5198024afec1b22ca.zip |
Server: add video language attribute
Diffstat (limited to 'server/tests/api/multiple-pods.js')
-rw-r--r-- | server/tests/api/multiple-pods.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/server/tests/api/multiple-pods.js b/server/tests/api/multiple-pods.js index cc4f7be70..45969e83a 100644 --- a/server/tests/api/multiple-pods.js +++ b/server/tests/api/multiple-pods.js | |||
@@ -84,6 +84,7 @@ describe('Test multiple pods', function () { | |||
84 | name: 'my super name for pod 1', | 84 | name: 'my super name for pod 1', |
85 | category: 5, | 85 | category: 5, |
86 | licence: 4, | 86 | licence: 4, |
87 | language: 9, | ||
87 | nsfw: true, | 88 | nsfw: true, |
88 | description: 'my super description for pod 1', | 89 | description: 'my super description for pod 1', |
89 | tags: [ 'tag1p1', 'tag2p1' ], | 90 | tags: [ 'tag1p1', 'tag2p1' ], |
@@ -113,6 +114,8 @@ describe('Test multiple pods', function () { | |||
113 | expect(video.categoryLabel).to.equal('Sports') | 114 | expect(video.categoryLabel).to.equal('Sports') |
114 | expect(video.licence).to.equal(4) | 115 | expect(video.licence).to.equal(4) |
115 | expect(video.licenceLabel).to.equal('Attribution - Non Commercial') | 116 | expect(video.licenceLabel).to.equal('Attribution - Non Commercial') |
117 | expect(video.language).to.equal(9) | ||
118 | expect(video.languageLabel).to.equal('Japanese') | ||
116 | expect(video.nsfw).to.be.truthy | 119 | expect(video.nsfw).to.be.truthy |
117 | expect(video.description).to.equal('my super description for pod 1') | 120 | expect(video.description).to.equal('my super description for pod 1') |
118 | expect(video.podHost).to.equal('localhost:9001') | 121 | expect(video.podHost).to.equal('localhost:9001') |
@@ -157,6 +160,7 @@ describe('Test multiple pods', function () { | |||
157 | name: 'my super name for pod 2', | 160 | name: 'my super name for pod 2', |
158 | category: 4, | 161 | category: 4, |
159 | licence: 3, | 162 | licence: 3, |
163 | language: 11, | ||
160 | nsfw: true, | 164 | nsfw: true, |
161 | description: 'my super description for pod 2', | 165 | description: 'my super description for pod 2', |
162 | tags: [ 'tag1p2', 'tag2p2', 'tag3p2' ], | 166 | tags: [ 'tag1p2', 'tag2p2', 'tag3p2' ], |
@@ -186,6 +190,8 @@ describe('Test multiple pods', function () { | |||
186 | expect(video.categoryLabel).to.equal('Art') | 190 | expect(video.categoryLabel).to.equal('Art') |
187 | expect(video.licence).to.equal(3) | 191 | expect(video.licence).to.equal(3) |
188 | expect(video.licenceLabel).to.equal('Attribution - No Derivatives') | 192 | expect(video.licenceLabel).to.equal('Attribution - No Derivatives') |
193 | expect(video.language).to.equal(11) | ||
194 | expect(video.languageLabel).to.equal('German') | ||
189 | expect(video.nsfw).to.be.falsy | 195 | expect(video.nsfw).to.be.falsy |
190 | expect(video.description).to.equal('my super description for pod 2') | 196 | expect(video.description).to.equal('my super description for pod 2') |
191 | expect(video.podHost).to.equal('localhost:9002') | 197 | expect(video.podHost).to.equal('localhost:9002') |
@@ -230,6 +236,7 @@ describe('Test multiple pods', function () { | |||
230 | name: 'my super name for pod 3', | 236 | name: 'my super name for pod 3', |
231 | category: 6, | 237 | category: 6, |
232 | licence: 5, | 238 | licence: 5, |
239 | language: 11, | ||
233 | nsfw: true, | 240 | nsfw: true, |
234 | description: 'my super description for pod 3', | 241 | description: 'my super description for pod 3', |
235 | tags: [ 'tag1p3' ], | 242 | tags: [ 'tag1p3' ], |
@@ -242,6 +249,7 @@ describe('Test multiple pods', function () { | |||
242 | name: 'my super name for pod 3-2', | 249 | name: 'my super name for pod 3-2', |
243 | category: 7, | 250 | category: 7, |
244 | licence: 6, | 251 | licence: 6, |
252 | language: 12, | ||
245 | nsfw: false, | 253 | nsfw: false, |
246 | description: 'my super description for pod 3-2', | 254 | description: 'my super description for pod 3-2', |
247 | tags: [ 'tag2p3', 'tag3p3', 'tag4p3' ], | 255 | tags: [ 'tag2p3', 'tag3p3', 'tag4p3' ], |
@@ -281,6 +289,8 @@ describe('Test multiple pods', function () { | |||
281 | expect(video1.categoryLabel).to.equal('Travels') | 289 | expect(video1.categoryLabel).to.equal('Travels') |
282 | expect(video1.licence).to.equal(5) | 290 | expect(video1.licence).to.equal(5) |
283 | expect(video1.licenceLabel).to.equal('Attribution - Non Commercial - Share Alike') | 291 | expect(video1.licenceLabel).to.equal('Attribution - Non Commercial - Share Alike') |
292 | expect(video1.language).to.equal(11) | ||
293 | expect(video1.languageLabel).to.equal('German') | ||
284 | expect(video1.nsfw).to.be.truthy | 294 | expect(video1.nsfw).to.be.truthy |
285 | expect(video1.description).to.equal('my super description for pod 3') | 295 | expect(video1.description).to.equal('my super description for pod 3') |
286 | expect(video1.podHost).to.equal('localhost:9003') | 296 | expect(video1.podHost).to.equal('localhost:9003') |
@@ -296,6 +306,8 @@ describe('Test multiple pods', function () { | |||
296 | expect(video2.categoryLabel).to.equal('Gaming') | 306 | expect(video2.categoryLabel).to.equal('Gaming') |
297 | expect(video2.licence).to.equal(6) | 307 | expect(video2.licence).to.equal(6) |
298 | expect(video2.licenceLabel).to.equal('Attribution - Non Commercial - No Derivatives') | 308 | expect(video2.licenceLabel).to.equal('Attribution - Non Commercial - No Derivatives') |
309 | expect(video2.language).to.equal(12) | ||
310 | expect(video2.languageLabel).to.equal('Korean') | ||
299 | expect(video2.nsfw).to.be.falsy | 311 | expect(video2.nsfw).to.be.falsy |
300 | expect(video2.description).to.equal('my super description for pod 3-2') | 312 | expect(video2.description).to.equal('my super description for pod 3-2') |
301 | expect(video2.podHost).to.equal('localhost:9003') | 313 | expect(video2.podHost).to.equal('localhost:9003') |
@@ -646,6 +658,7 @@ describe('Test multiple pods', function () { | |||
646 | name: 'my super video updated', | 658 | name: 'my super video updated', |
647 | category: 10, | 659 | category: 10, |
648 | licence: 7, | 660 | licence: 7, |
661 | language: 13, | ||
649 | nsfw: true, | 662 | nsfw: true, |
650 | description: 'my super description updated', | 663 | description: 'my super description updated', |
651 | tags: [ 'tagup1', 'tagup2' ] | 664 | tags: [ 'tagup1', 'tagup2' ] |
@@ -677,6 +690,8 @@ describe('Test multiple pods', function () { | |||
677 | expect(videoUpdated.categoryLabel).to.equal('Entertainment') | 690 | expect(videoUpdated.categoryLabel).to.equal('Entertainment') |
678 | expect(videoUpdated.licence).to.equal(7) | 691 | expect(videoUpdated.licence).to.equal(7) |
679 | expect(videoUpdated.licenceLabel).to.equal('Public Domain Dedication') | 692 | expect(videoUpdated.licenceLabel).to.equal('Public Domain Dedication') |
693 | expect(videoUpdated.language).to.equal(13) | ||
694 | expect(videoUpdated.languageLabel).to.equal('French') | ||
680 | expect(videoUpdated.nsfw).to.be.truthy | 695 | expect(videoUpdated.nsfw).to.be.truthy |
681 | expect(videoUpdated.description).to.equal('my super description updated') | 696 | expect(videoUpdated.description).to.equal('my super description updated') |
682 | expect(videoUpdated.tags).to.deep.equal([ 'tagup1', 'tagup2' ]) | 697 | expect(videoUpdated.tags).to.deep.equal([ 'tagup1', 'tagup2' ]) |