Last change
on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
399 bytes
|
Line | |
---|
1 | 'use strict'
|
---|
2 |
|
---|
3 | const helper = require('../helper')
|
---|
4 |
|
---|
5 | class MultiReporter {
|
---|
6 | constructor (reporters) {
|
---|
7 | this._reporters = reporters
|
---|
8 | }
|
---|
9 |
|
---|
10 | addAdapter (adapter) {
|
---|
11 | this._reporters.forEach((reporter) => reporter.adapters.push(adapter))
|
---|
12 | }
|
---|
13 |
|
---|
14 | removeAdapter (adapter) {
|
---|
15 | this._reporters.forEach((reporter) => helper.arrayRemove(reporter.adapters, adapter))
|
---|
16 | }
|
---|
17 | }
|
---|
18 |
|
---|
19 | module.exports = MultiReporter
|
---|
Note:
See
TracBrowser
for help on using the repository browser.