diff --git a/src/curated-corpus/helpers/definitions.ts b/src/curated-corpus/helpers/definitions.ts index 71f9dd668..270fc36ef 100644 --- a/src/curated-corpus/helpers/definitions.ts +++ b/src/curated-corpus/helpers/definitions.ts @@ -13,7 +13,7 @@ export interface DropdownOption { code: string; name: string; } -// This is a list of topics. The 15 "standard" topics + coronavirus. +// This is a list of topics. The 16 "standard" topics + coronavirus. export const topics: DropdownOption[] = [ { code: Topics.Business, name: 'Business' }, { code: Topics.Career, name: 'Career' }, @@ -23,6 +23,7 @@ export const topics: DropdownOption[] = [ { code: Topics.Food, name: 'Food' }, { code: Topics.Gaming, name: 'Gaming' }, { code: Topics.HealthFitness, name: 'Health & Fitness' }, + { code: Topics.Home, name: 'Home' }, { code: Topics.Parenting, name: 'Parenting' }, { code: Topics.PersonalFinance, name: 'Personal Finance' }, { code: Topics.Politics, name: 'Politics' }, diff --git a/src/curated-corpus/helpers/topics.test.ts b/src/curated-corpus/helpers/topics.test.ts index db65d22a0..718c4afd0 100644 --- a/src/curated-corpus/helpers/topics.test.ts +++ b/src/curated-corpus/helpers/topics.test.ts @@ -43,7 +43,7 @@ describe('helper functions related to topics', () => { expect(topics).to.be.an('array'); // However, we're getting the entire list of topics here, // not just the ones stories belong to - expect(topics).to.have.lengthOf(16); + expect(topics).to.have.lengthOf(17); // And we expect to see the story topics, with the correct counts expect(topics).to.contain.deep.members([ @@ -89,12 +89,12 @@ describe('helper functions related to topics', () => { it('returns a list of topics without "Coronavirus" if requested', () => { const topics = getGroupedTopicData(data, true, false); - expect(topics).to.be.an('array').with.lengthOf(15); + expect(topics).to.be.an('array').with.lengthOf(16); }); it('returns a full list of topics if requested', () => { const topics = getGroupedTopicData(data); - expect(topics).to.be.an('array').with.lengthOf(16); + expect(topics).to.be.an('array').with.lengthOf(17); }); }); });