From 6cd69f0c951c2fe98d0ae436a19373886827fe97 Mon Sep 17 00:00:00 2001 From: "O.Bilenko" Date: Thu, 11 Apr 2019 16:56:05 +0200 Subject: [PATCH 1/2] PWA-1833 Add missing country ME --- .../ui-shared/Form/Builder/iso-3166-2.js | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/libraries/ui-shared/Form/Builder/iso-3166-2.js b/libraries/ui-shared/Form/Builder/iso-3166-2.js index c7b47ad372..db3c56372c 100644 --- a/libraries/ui-shared/Form/Builder/iso-3166-2.js +++ b/libraries/ui-shared/Form/Builder/iso-3166-2.js @@ -2716,6 +2716,34 @@ export default { 'L': 'Luxembourg (Luxemburg)', }, }, + ME: { + name: 'Montenegro', + divisions: { + '01': 'Andrijevica', + '02': 'Bar', + '03': 'Berane', + '04': 'Bijelo Polje', + '05': 'Budva', + '06': 'Cetinje', + '07': 'Danilovgrad', + '08': 'Herceg-Novi', + '09': 'Kolašin', + '10': 'Kotor', + '11': 'Mojkovac', + '12': 'Nikšić', + '13': 'Plav', + '14': 'Pljevlja', + '15': 'Plužine', + '16': 'Podgorica', + '17': 'Rožaje', + '18': 'Šavnik', + '19': 'Tivat', + '20': 'Ulcinj', + '21': 'Žabljak', + '22': 'Gusinje', + '23': 'Petnjica', + }, + }, MO: { name: 'Macau', divisions: { From 6c92d04b80eff007d0aac62e1f555173175fb1d7 Mon Sep 17 00:00:00 2001 From: SG-Noxoreos Date: Thu, 11 Apr 2019 17:37:31 +0200 Subject: [PATCH 2/2] PWA-1833: Fixed a unit test of the form builder. --- .../ui-shared/Form/Builder/builders/buildCountryList.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/ui-shared/Form/Builder/builders/buildCountryList.spec.js b/libraries/ui-shared/Form/Builder/builders/buildCountryList.spec.js index 7d55dc8baf..5cf5b2c3f8 100644 --- a/libraries/ui-shared/Form/Builder/builders/buildCountryList.spec.js +++ b/libraries/ui-shared/Form/Builder/builders/buildCountryList.spec.js @@ -36,6 +36,6 @@ describe('buildCountryList', () => { const expected = { DE: 'Germany', }; - expect(buildCountryList({ countries: ['DE', 'ME'] })).toEqual(expected); + expect(buildCountryList({ countries: ['DE', 'XX'] })).toEqual(expected); }); });