@aerapass/country-data
Version:
Data about countries - like their ISO codes and currencies
16 lines • 655 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const __1 = require("../");
const _ = require("underscore");
_.each(__1.countries, (country) => {
if (country.countryCallingCodes && country.countryCallingCodes.length) {
test('should contain codes for ' + country.name, () => {
expect(country.countryCallingCodes).toBeDefined();
});
}
});
test('should contain countries with calling codes', () => {
const country = __1.countries.all.find((country) => country.name === 'Germany');
expect(country.countryCallingCodes).toEqual(['+49']);
});
//# sourceMappingURL=calling-codes.test.js.map