From 6f2ae7a1aa1b4a8b5605fc4c57c0c1d1fbe2a16e Mon Sep 17 00:00:00 2001 From: Adnane Belmadiaf Date: Sun, 14 Oct 2018 19:43:17 +0200 Subject: rename News category into News & Politics (#1261) --- server/initializers/constants.ts | 2 +- server/tests/api/videos/single-server.ts | 2 +- server/tests/api/videos/video-imports.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index e08fd75cd..49ee13c10 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -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', diff --git a/server/tests/api/videos/single-server.ts b/server/tests/api/videos/single-server.ts index e3d62b7a0..089c3df25 100644 --- a/server/tests/api/videos/single-server.ts +++ b/server/tests/api/videos/single-server.ts @@ -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 () { diff --git a/server/tests/api/videos/video-imports.ts b/server/tests/api/videos/video-imports.ts index b7866d529..aaee79a4a 100644 --- a/server/tests/api/videos/video-imports.ts +++ b/server/tests/api/videos/video-imports.ts @@ -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 -- cgit v1.2.3