]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
rename News category into News & Politics (#1261)
authorAdnane Belmadiaf <daker@users.noreply.github.com>
Sun, 14 Oct 2018 17:43:17 +0000 (19:43 +0200)
committerRigel Kent <par@rigelk.eu>
Sun, 14 Oct 2018 17:43:17 +0000 (19:43 +0200)
server/initializers/constants.ts
server/tests/api/videos/single-server.ts
server/tests/api/videos/video-imports.ts

index e08fd75cd85540df7267e0210a6f9b8c9dd3c61e..49ee13c10dd75f3d99c1e4d9da7c4fcefc1cc236 100644 (file)
@@ -421,7 +421,7 @@ const VIDEO_CATEGORIES = {
   8: 'People',
   9: 'Comedy',
   10: 'Entertainment',
-  11: 'News',
+  11: 'News & Politics',
   12: 'How To',
   13: 'Education',
   14: 'Activism',
index e3d62b7a0df4c1dfa41ccf40f47557c514624256..089c3df25990b07f2a831f896b2fb816b1489dff 100644 (file)
@@ -118,7 +118,7 @@ describe('Test a single server', function () {
     const categories = res.body
     expect(Object.keys(categories)).to.have.length.above(10)
 
-    expect(categories[11]).to.equal('News')
+    expect(categories[11]).to.equal('News & Politics')
   })
 
   it('Should list video licences', async function () {
index b7866d529ac0a6c8198250db23a36a024f117f8c..aaee79a4abab1351ab9fa950d29dafc652644e32 100644 (file)
@@ -30,7 +30,7 @@ describe('Test video imports', function () {
     const videoHttp: VideoDetails = resHttp.body
 
     expect(videoHttp.name).to.equal('small video - youtube')
-    expect(videoHttp.category.label).to.equal('News')
+    expect(videoHttp.category.label).to.equal('News & Politics')
     expect(videoHttp.licence.label).to.equal('Attribution')
     expect(videoHttp.language.label).to.equal('Unknown')
     expect(videoHttp.nsfw).to.be.false