Skip to content

Commit

Permalink
rename Americas to America
Browse files Browse the repository at this point in the history
  • Loading branch information
agnlez committed Oct 23, 2024
1 parent 82428fe commit cb70aaa
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions src/data/case-studies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -1305,7 +1305,7 @@ export const CASE_STUDIES: CaseStudy[] = [
ComplianceType.PROMOTING,
ComplianceType.ENFORCEMENT,
Impact.LOCAL,
Continent.AMERICAS,
Continent.AMERICA,
],
},
];
Expand Down
2 changes: 1 addition & 1 deletion src/lib/case-studies.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
Expand Down
22 changes: 11 additions & 11 deletions tests/events/case-studies.service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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',
Expand Down Expand Up @@ -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'],
},
]);
});
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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'],
},
]);
});
Expand Down

0 comments on commit cb70aaa

Please sign in to comment.