summaryrefslogtreecommitdiffstats
path: root/lib/plugins/toNames.js
blob: ad0dd8f827cbed892bb1ed1b74d9487cdc3e55a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

/**
 * Return list of plugin names. This method is nly used in unit tests.
 *
 * @param {OrderedMap<String:Plugin} plugins
 * @return {Array<String>}
 */
function toNames(plugins) {
    return plugins
        .map(function(plugin) {
            return plugin.getName();
        })
        .toArray();
}

module.exports = toNames;