mirror of https://github.com/Chocobozzz/PeerTube
rename News category into News & Politics (#1261)
parent
0e5ff97f6f
commit
6f2ae7a1aa
|
@ -421,7 +421,7 @@ const VIDEO_CATEGORIES = {
|
||||||
8: 'People',
|
8: 'People',
|
||||||
9: 'Comedy',
|
9: 'Comedy',
|
||||||
10: 'Entertainment',
|
10: 'Entertainment',
|
||||||
11: 'News',
|
11: 'News & Politics',
|
||||||
12: 'How To',
|
12: 'How To',
|
||||||
13: 'Education',
|
13: 'Education',
|
||||||
14: 'Activism',
|
14: 'Activism',
|
||||||
|
|
|
@ -118,7 +118,7 @@ describe('Test a single server', function () {
|
||||||
const categories = res.body
|
const categories = res.body
|
||||||
expect(Object.keys(categories)).to.have.length.above(10)
|
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 () {
|
it('Should list video licences', async function () {
|
||||||
|
|
|
@ -30,7 +30,7 @@ describe('Test video imports', function () {
|
||||||
const videoHttp: VideoDetails = resHttp.body
|
const videoHttp: VideoDetails = resHttp.body
|
||||||
|
|
||||||
expect(videoHttp.name).to.equal('small video - youtube')
|
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.licence.label).to.equal('Attribution')
|
||||||
expect(videoHttp.language.label).to.equal('Unknown')
|
expect(videoHttp.language.label).to.equal('Unknown')
|
||||||
expect(videoHttp.nsfw).to.be.false
|
expect(videoHttp.nsfw).to.be.false
|
||||||
|
|
Loading…
Reference in New Issue