You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
399 B
19 lines
399 B
'use strict'
|
|
|
|
const helper = require('../helper')
|
|
|
|
class MultiReporter {
|
|
constructor (reporters) {
|
|
this._reporters = reporters
|
|
}
|
|
|
|
addAdapter (adapter) {
|
|
this._reporters.forEach((reporter) => reporter.adapters.push(adapter))
|
|
}
|
|
|
|
removeAdapter (adapter) {
|
|
this._reporters.forEach((reporter) => helper.arrayRemove(reporter.adapters, adapter))
|
|
}
|
|
}
|
|
|
|
module.exports = MultiReporter
|