source: trip-planner-front/node_modules/karma/lib/reporters/multi.js

Last change on this file 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
3const helper = require('../helper')
4
5class 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
19module.exports = MultiReporter
Note: See TracBrowser for help on using the repository browser.