All files / lib getCurrencyList.js

66.67% Statements 6/9
75% Branches 3/4
33.33% Functions 1/3
66.67% Lines 6/9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24    1x       1x   1x   1x   1x                     1x
'use strict';
 
Object.defineProperty(exports, "__esModule", {
    value: true
});
 
var _currencyMap = require('./map/currency-map');
 
var _currencyMap2 = _interopRequireDefault(_currencyMap);
 
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
 
var getCurrencyList = function getCurrencyList() {
    var currencyArray = Object.keys(_currencyMap2.default).map(function (currencyAbbr) {
        return {
            abbr: currencyAbbr,
            name: _currencyMap2.default[currencyAbbr].name,
            symbolFormat: _currencyMap2.default[currencyAbbr].symbolFormat
        };
    });
    return currencyArray;
};
 
exports.default = getCurrencyList;