Skip to content

Commit

Permalink
Fixed finding RESTafval voor Den Haag #231
Browse files Browse the repository at this point in the history
  • Loading branch information
robertraaijmakers committed Feb 27, 2025
1 parent bd9d26e commit 54fb74c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export function processWasteData(afvalstromenResponse: any, kalenderResponse: an
if (checkTitle.includes('GFT') || checkTitle.includes('GROENTE') || checkTitle.includes('GROENE')) collectionType = TrashType.GFT;
if (checkTitle.includes('PBD') || checkTitle.includes('PMD') || checkTitle.includes('PLASTIC')) collectionType = TrashType.PMD;
if (checkTitle.includes('PAPIER')) collectionType = TrashType.PAPIER;
if (checkTitle.includes('RESTAFVAL') || checkTitle.includes('GRIJZE')) collectionType = TrashType.REST;
if (checkTitle.includes('REST') || checkTitle.includes('RESTAFVAL') || checkTitle.includes('GRIJZE')) collectionType = TrashType.REST;
if (checkTitle.includes('TEXTIEL')) collectionType = TrashType.TEXTIEL;
if (checkTitle.includes('KERSTBOOM') || checkTitle.includes('KERSTBOMEN')) collectionType = TrashType.KERSTBOOM;
if (checkTitle.includes('GROF')) collectionType = TrashType.GROF;
Expand Down
17 changes: 17 additions & 0 deletions test/trashApiTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,23 @@ describe('TrashApiAvr', function () {
});
});
describe('HuisvuilDenHaag', function () {
it('API - Huisvuil Den Haag', async function () {
const apiSettings: ApiSettings = {
zipcode: '2492NN',
housenumber: '9',
country: 'NL',
apiId: 'hkdh',
cleanApiId: '',
streetname: '',
};
const result = await testAPI(apiSettings);
const isValid = validateApiResults(apiSettings, result);
assert.equal(isValid, true);
});
});
describe('TrashApiRd4', function () {
it('API - RD4', async function () {
const apiSettings: ApiSettings = {
Expand Down

0 comments on commit 54fb74c

Please sign in to comment.