diff --git a/src/data/case-studies.ts b/src/data/case-studies.ts index 82caec8..09a5978 100644 --- a/src/data/case-studies.ts +++ b/src/data/case-studies.ts @@ -686,14 +686,14 @@ export const CASE_STUDIES: CaseStudy[] = [ location: { continent: Continent.EUROPE, country: { - name: 'Dunmore East stream flowing into EU Bathing Water, Ireland', + name: 'Galway', code: 'IE', }, coordinates: { type: 'Feature', geometry: { type: 'Point', - coordinates: [-6.9859777, 52.1480022], + coordinates: [-9.051501731471465, 53.274995533218394], }, properties: { id: '11', @@ -1235,7 +1235,7 @@ export const CASE_STUDIES: CaseStudy[] = [ subTheme: 'Reducing forest loss from illegal activities and fires', thematicAreas: [ThematicArea.DEFORESTATION_PREVENTION], location: { - continent: Continent.AMERICAS, + continent: Continent.AMERICA, country: { name: 'Bolivia', code: 'BO', @@ -1305,7 +1305,7 @@ export const CASE_STUDIES: CaseStudy[] = [ ComplianceType.PROMOTING, ComplianceType.ENFORCEMENT, Impact.LOCAL, - Continent.AMERICAS, + Continent.AMERICA, ], }, ]; diff --git a/src/lib/case-studies.service.ts b/src/lib/case-studies.service.ts index bf1fb35..b5f21cf 100644 --- a/src/lib/case-studies.service.ts +++ b/src/lib/case-studies.service.ts @@ -24,7 +24,7 @@ export type URLink = { title: string; url: string }; export type Tag = Impact | ThematicArea | Continent | ComplianceType; export enum Continent { EUROPE = 'Europe', - AMERICAS = 'Americas', + AMERICA = 'America', ASIA = 'Asia', AFRICA = 'Africa', } diff --git a/tests/events/case-studies.service.test.ts b/tests/events/case-studies.service.test.ts index 8d99c0f..a50b8d1 100644 --- a/tests/events/case-studies.service.test.ts +++ b/tests/events/case-studies.service.test.ts @@ -79,7 +79,7 @@ describe('CaseStudyService', () => { }); it('should filter cases studies by keyword in tags', () => { - const filters = { keyword: 'Americas' }; + const filters = { keyword: 'America' }; const caseStudyService = new CaseStudyService(CASE_STUDIES, filters); const result = caseStudyService.searchCaseStudies(); @@ -90,7 +90,7 @@ describe('CaseStudyService', () => { subTheme: 'Reducing forest loss from illegal activities and fires', thematicAreas: ['Deforestation Prevention'], location: { - continent: 'Americas', + continent: 'America', country: { name: 'Bolivia', code: 'BO', @@ -155,7 +155,7 @@ describe('CaseStudyService', () => { title: 'Forests of the World', url: 'https://www.forestsoftheworld.org/', }, - tags: ['Deforestation Prevention', 'Promoting', 'Enforcement', 'Local', 'Americas'], + tags: ['Deforestation Prevention', 'Promoting', 'Enforcement', 'Local', 'America'], }, ]); }); @@ -446,14 +446,14 @@ describe('CaseStudyService', () => { location: { continent: 'Europe', country: { - name: 'Dunmore East stream flowing into EU Bathing Water, Ireland', + name: 'Galway', code: 'IE', }, coordinates: { type: 'Feature', geometry: { type: 'Point', - coordinates: [-6.9859777, 52.1480022], + coordinates: [-9.051501731471465, 53.274995533218394], }, properties: { id: '11', @@ -1347,14 +1347,14 @@ describe('CaseStudyService', () => { location: { continent: 'Europe', country: { - name: 'Dunmore East stream flowing into EU Bathing Water, Ireland', + name: 'Galway', code: 'IE', }, coordinates: { type: 'Feature', geometry: { type: 'Point', - coordinates: [-6.9859777, 52.1480022], + coordinates: [-9.051501731471465, 53.274995533218394], }, properties: { id: '11', @@ -1950,14 +1950,14 @@ describe('CaseStudyService', () => { location: { continent: 'Europe', country: { - name: 'Dunmore East stream flowing into EU Bathing Water, Ireland', + name: 'Galway', code: 'IE', }, coordinates: { type: 'Feature', geometry: { type: 'Point', - coordinates: [-6.9859777, 52.1480022], + coordinates: [-9.051501731471465, 53.274995533218394], }, properties: { id: '11', @@ -2265,7 +2265,7 @@ describe('CaseStudyService', () => { subTheme: 'Reducing forest loss from illegal activities and fires', thematicAreas: ['Deforestation Prevention'], location: { - continent: 'Americas', + continent: 'America', country: { name: 'Bolivia', code: 'BO', @@ -2330,7 +2330,7 @@ describe('CaseStudyService', () => { title: 'Forests of the World', url: 'https://www.forestsoftheworld.org/', }, - tags: ['Deforestation Prevention', 'Promoting', 'Enforcement', 'Local', 'Americas'], + tags: ['Deforestation Prevention', 'Promoting', 'Enforcement', 'Local', 'America'], }, ]); });