diff --git a/countries.json b/countries.json index d93151f..04417a4 100644 --- a/countries.json +++ b/countries.json @@ -225,7 +225,7 @@ "TM": ["Turkmenistan", "Turkmen"], "TN": ["Tunisia", "Tunisian"], "TO": ["Tonga", "Tongan"], - "TR": ["Turkey", "Turkish", "Türkiye"], + "TR": ["Türkiye","Turkey", "Turkish"], "TT": ["Trinidad and Tobago", "Trinidadian"], "TV": ["Tuvalu", "Tuvaluan"], "TW": ["Taiwan", "Taiwanese"], diff --git a/test/name.js b/test/name.js index 02eaebb..576221f 100644 --- a/test/name.js +++ b/test/name.js @@ -52,6 +52,11 @@ test('returns correct name for Macedonian country code', t => { t.is(country, 'Republic of North Macedonia', 'Should return correct name for code MK'); }); +test('returns name with diacritics for code TR', t => { + const country = name('TR'); + t.is(country, 'Türkiye', 'Should return correct name for code TR'); +}); + test('returns undefined if invalid code is given', t => { const country = name('YY'); t.is(country, undefined, 'Should return undefined for invalid code YY');