country-locale-map
Advanced tools
Comparing version 1.5.3 to 1.6.1
{ | ||
"name": "country-locale-map", | ||
"version": "1.5.3", | ||
"version": "1.6.1", | ||
"description": "Provides mapping between country codes and provides default country locals. Includes optional fuzzy matching for country name.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -204,3 +204,3 @@ /* eslint-env node, mocha */ | ||
it('getCountryByName should return UK if passed United Kingdom', function(){ | ||
it('getCountryByName should return United Kingdom if passed United Kingdom', function(){ | ||
@@ -213,6 +213,15 @@ let result = clm.getCountryByName('United Kingdom', true) | ||
it('getAllCountries should return 193 countries', function(){ | ||
it('getCountryByName should return Australia if passed United Kingdom', function(){ | ||
let result = clm.getCountryByName('Australia', true) | ||
expect(result.alpha3).to.equal('AUS') | ||
expect(result.currency).to.equal('AUD') | ||
}); | ||
it('getAllCountries should return 249 countries', function(){ | ||
let result = clm.getAllCountries(); | ||
expect(result.length).to.equal(248) | ||
expect(result.length).to.equal(249) | ||
@@ -219,0 +228,0 @@ }); |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96559
395