var expect = require('chai').expect;
var allCountries = require('../src/index');

describe('all-countries', function () {
    describe('all', function () {
        it('should be an array of strings', function (){
            expect(allCountries.all).to.satisfy(isArrayOfStrings);

            function isArrayOfStrings(array) {
                return array.every(function(item) {
                    return typeof item === 'string';
                })
            }
        });
    });

    describe('getCountryCodes', function () {
        it('should be an array of strings', function (){
            expect(allCountries.getCountryCodes).to.satisfy(isArrayOfStrings);

            function isArrayOfStrings(array) {
                return array.every(function(item) {
                    return typeof item === 'string';
                })
            }
        });
    });

    describe('getCapitals', function () {
        it('should be an array of strings', function (){
            expect(allCountries.getCapitals).to.satisfy(isArrayOfStrings);

            function isArrayOfStrings(array) {
                return array.every(function(item) {
                    return typeof item === 'string';
                })
            }
        });
    });

    describe('getCurrencies', function () {
        it('should be an array of strings', function (){
            expect(allCountries.getCurrencies).to.satisfy(isArrayOfStrings);

            function isArrayOfStrings(array) {
                return array.every(function(item) {
                    return typeof item === 'string';
                })
            }
        });
    });

    describe('getPhoneCodes', function () {
        it('should be an array of strings', function (){
            expect(allCountries.getPhoneCodes).to.satisfy(isArrayOfStrings);

            function isArrayOfStrings(array) {
                return array.every(function(item) {
                    return typeof item === 'string';
                })
            }
        });
    });
});

@@ -472,32 +472,759 @@
    %7D);%0A    %7D);%0A%0A
+    describe('getCountryByCode', function () %7B%0A        it('should not throw an error with right params', function ()%7B%0A            expect(function () %7B allCountries.getCountryByCode('US'); %7D).to.not.throw();%0A        %7D);%0A%0A        // it('should be a string', function ()%7B%0A        //     expect(function () %7B allCountries.getCountryByCode('US'); %7D).to.satisfy(isString);%0A        //     // expect(function () %7B allCountries.getCountryByCode(%22anything else%22) %7D).to.throw(%22stop js execution%22);%0A        //%0A        //     // expect(allCountries.getCountryByCode).to.satisfy(isString);%0A        //     //%0A        //     function isString(item) %7B%0A        //         return typeof item === 'string';%0A        //     %7D%0A        // %7D)%0A    %7D);%0A%0A
     describe('ge

Add a more test