Skip to content

Commit

Permalink
feat(select): review fix
Browse files Browse the repository at this point in the history
Signed-off-by: astagnol <[email protected]>
  • Loading branch information
astagnol authored and dpellier committed Oct 9, 2024
1 parent 2a333fc commit 8384db5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function getTranslatedCountries(locale: OdsPhoneNumberLocale): { isoCode: string
case ODS_PHONE_NUMBER_LOCALE.pt:
return countriesTranslationPt;
default:
return countriesTranslationFr;
return countriesTranslationEn;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ describe('ods-phone-number controller', () => {
const defaultMap = getTranslatedCountryMap('zw', mockPhoneUtils);

expect(defaultMap.size).toBe(countriesTranslationFr.length);
expect(defaultMap.values().next().value.name).toBe('Andorre');
expect(defaultMap.values().next().value.name).toBe('Andorra');
expect(mockPhoneUtils.getExampleNumber).toHaveBeenCalledTimes(countriesTranslationFr.length);
expect(getCountryCodeSpy).toHaveBeenCalledTimes(countriesTranslationFr.length);
});
Expand Down

0 comments on commit 8384db5

Please sign in to comment.