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

Last change on this file since 59329aa 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.