aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/single-server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-04-23 14:39:52 +0200
committerChocobozzz <me@florianbigard.com>2018-04-23 14:39:52 +0200
commit9d3ef9fe052ed29bd67566754cb28662bd122234 (patch)
tree7b704dbc0b2c8b4ca18bef2409d640d0019c3d0a /server/tests/api/videos/single-server.ts
parent2a2c19dfef7a9aa313c6ca0798f271c9a63449a9 (diff)
downloadPeerTube-9d3ef9fe052ed29bd67566754cb28662bd122234.tar.gz
PeerTube-9d3ef9fe052ed29bd67566754cb28662bd122234.tar.zst
PeerTube-9d3ef9fe052ed29bd67566754cb28662bd122234.zip
Use ISO 639 for languages
Diffstat (limited to 'server/tests/api/videos/single-server.ts')
-rw-r--r--server/tests/api/videos/single-server.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/tests/api/videos/single-server.ts b/server/tests/api/videos/single-server.ts
index 7c4bdf8bc..5e163e9df 100644
--- a/server/tests/api/videos/single-server.ts
+++ b/server/tests/api/videos/single-server.ts
@@ -23,7 +23,7 @@ describe('Test a single server', function () {
23 name: 'my super name', 23 name: 'my super name',
24 category: 2, 24 category: 2,
25 licence: 6, 25 licence: 6,
26 language: 3, 26 language: 'zh',
27 nsfw: true, 27 nsfw: true,
28 description: 'my super description', 28 description: 'my super description',
29 support: 'my super support text', 29 support: 'my super support text',
@@ -54,7 +54,7 @@ describe('Test a single server', function () {
54 name: 'my super video updated', 54 name: 'my super video updated',
55 category: 4, 55 category: 4,
56 licence: 2, 56 licence: 2,
57 language: 5, 57 language: 'ar',
58 nsfw: false, 58 nsfw: false,
59 description: 'my super description updated', 59 description: 'my super description updated',
60 support: 'my super support text updated', 60 support: 'my super support text updated',
@@ -115,7 +115,7 @@ describe('Test a single server', function () {
115 const languages = res.body 115 const languages = res.body
116 expect(Object.keys(languages)).to.have.length.above(5) 116 expect(Object.keys(languages)).to.have.length.above(5)
117 117
118 expect(languages[3]).to.equal('Mandarin') 118 expect(languages['ru']).to.equal('Russian')
119 }) 119 })
120 120
121 it('Should list video privacies', async function () { 121 it('Should list video privacies', async function () {
@@ -222,8 +222,8 @@ describe('Test a single server', function () {
222 // expect(video.categoryLabel).to.equal('Films') 222 // expect(video.categoryLabel).to.equal('Films')
223 // expect(video.licence).to.equal(6) 223 // expect(video.licence).to.equal(6)
224 // expect(video.licenceLabel).to.equal('Attribution - Non Commercial - No Derivatives') 224 // expect(video.licenceLabel).to.equal('Attribution - Non Commercial - No Derivatives')
225 // expect(video.language).to.equal(3) 225 // expect(video.language).to.equal('zh')
226 // expect(video.languageLabel).to.equal('Mandarin') 226 // expect(video.languageLabel).to.equal('Chinese')
227 // expect(video.nsfw).to.be.ok 227 // expect(video.nsfw).to.be.ok
228 // expect(video.description).to.equal('my super description') 228 // expect(video.description).to.equal('my super description')
229 // expect(video.account.name).to.equal('root') 229 // expect(video.account.name).to.equal('root')
@@ -292,7 +292,7 @@ describe('Test a single server', function () {
292 description: video + ' description', 292 description: video + ' description',
293 category: 2, 293 category: 2,
294 licence: 1, 294 licence: 1,
295 language: 1, 295 language: 'en',
296 nsfw: true, 296 nsfw: true,
297 tags: [ 'tag1', 'tag2', 'tag3' ], 297 tags: [ 'tag1', 'tag2', 'tag3' ],
298 fixture: video 298 fixture: video
@@ -458,7 +458,7 @@ describe('Test a single server', function () {
458 name: 'my super video updated', 458 name: 'my super video updated',
459 category: 4, 459 category: 4,
460 licence: 2, 460 licence: 2,
461 language: 5, 461 language: 'ar',
462 nsfw: false, 462 nsfw: false,
463 description: 'my super description updated', 463 description: 'my super description updated',
464 commentsEnabled: false, 464 commentsEnabled: false,