All files currency-map-symbol.js

100% Statements 9/9
100% Branches 4/4
100% Functions 1/1
100% Lines 7/7
1 2 3 4 5 6 7 8 9 10 111x   1x 177x 174x 174x 173x     1x  
let currencySymbolMap = require('./map');
 
module.exports = function getSymbolFromCurrency (currencyCode) {
  if (typeof currencyCode !== 'string') return undefined;
  let code = currencyCode.toUpperCase();
  if (!currencySymbolMap.hasOwnProperty(code)) return undefined;
  return currencySymbolMap[code]
};
 
module.exports.currencySymbolMap = currencySymbolMap;