diff --git a/src/universal/helpers/bag.test.ts b/src/universal/helpers/bag.test.ts index 38a9c1069..017e5765e 100644 --- a/src/universal/helpers/bag.test.ts +++ b/src/universal/helpers/bag.test.ts @@ -154,7 +154,7 @@ describe('getLatLonByAddress', () => { }); }); - test('huisnummertoevoeging extracted with extra comma', () => { + test('huisnummertoevoeging extracted with trailing comma', () => { expect(extractAddress('Herengracht 23-1,')).toStrictEqual({ openbareruimteNaam: 'Herengracht', huisnummer: 23, @@ -163,6 +163,15 @@ describe('getLatLonByAddress', () => { }); }); + test('Letter extracted as toevoeging', () => { + expect(extractAddress('Insulindeweg 26A')).toStrictEqual({ + openbareruimteNaam: 'Insulindeweg', + huisnummer: 23, + huisnummertoevoeging: 'A', + huisletter: undefined, + }); + }); + test('Ignores postcal code, city name and random charcters', () => { expect( extractAddress('Straatnaam 1, 1015BA, Amsterdam _ ; ,')