All files / src getCurrencyAbbreviation.js

100% Statements 5/5
100% Branches 3/3
100% Functions 1/1
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11    6x 2x 2x 1x   1x      
import getCountry from './getCountry';
 
const getCurrencyAbbreviation = (countryName, moreCountries = undefined) => {
    const country = getCountry(countryName, moreCountries = undefined);
    if(country) {
        return country.cur;
    }
    return undefined;
};
 
export default getCurrencyAbbreviation;