i18n-iso-countries
Advanced tools
Comparing version 0.13.0 to 0.14.0
@@ -12,3 +12,4 @@ var codes = require("./codes"); | ||
"fi" : require("./fi"), | ||
"et" : require("./et") | ||
"et" : require("./et"), | ||
"ar" : require("./ar") | ||
}; | ||
@@ -15,0 +16,0 @@ |
{ | ||
"name": "i18n-iso-countries", | ||
"version": "0.13.0", | ||
"version": "0.14.0", | ||
"description": "i18n for ISO 3166-1 country codes", | ||
@@ -25,3 +25,4 @@ "keywords": [ | ||
"fi", | ||
"et" | ||
"et", | ||
"ar" | ||
], | ||
@@ -35,2 +36,5 @@ "author": { | ||
"email": "post@michaelwittig.info" | ||
},{ | ||
"name": "Bedis ElAcheche", | ||
"email": "d4rk-5c0rp@ubuntu.com" | ||
}], | ||
@@ -37,0 +41,0 @@ "license" : "MIT", |
@@ -38,2 +38,3 @@ [![Build Status](https://secure.travis-ci.org/michaelwittig/node-i18n-iso-countries.png)](http://travis-ci.org/michaelwittig/node-i18n-iso-countries) | ||
* `et`: estonian | ||
* `ar`: arabic | ||
@@ -40,0 +41,0 @@ ### Country to Code |
@@ -282,2 +282,15 @@ var assert = require("assert-plus"), | ||
}); | ||
describe("ar", function () { | ||
var lang = "ar"; | ||
it("complete (to less)", function() { | ||
Object.keys(i18niso.getAlpha2Codes()).forEach(function(code) { | ||
assert.notEqual(i18niso.getName(code, lang), undefined, "missing entry for " + code); | ||
}); | ||
}); | ||
it("complete (too much)", function() { | ||
Object.keys(i18niso.getNames(lang)).forEach(function(code) { | ||
assert.notEqual(i18niso.getAlpha2Codes()[code], -1, "entry for " + code + " is too much"); | ||
}); | ||
}); | ||
}); | ||
describe("unsupported language", function () { | ||
@@ -284,0 +297,0 @@ var lang = "unsupported"; |
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
94666
21
3335
110