multi.js
410 Bytes
var helper = require('../helper')
var MultiReporter = function (reporters) {
this.addAdapter = function (adapter) {
reporters.forEach(function (reporter) {
reporter.adapters.push(adapter)
})
}
this.removeAdapter = function (adapter) {
reporters.forEach(function (reporter) {
helper.arrayRemove(reporter.adapters, adapter)
})
}
}
// PUBLISH
module.exports = MultiReporter