All files / botbuilder-unit/src detectReporter.js

100% Statements 8/8
100% Branches 4/4
100% Functions 1/1
100% Lines 8/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 172x 2x 2x     2x 8x   4x   2x     2x      
const PlainLogReporter = require('./log-reporters/PlainLogReporter');
const EmptyLogReporter = require('./log-reporters/EmptyLogReporter');
const BeautyLogReporter = require('./log-reporters/BeautyLogReporter');
 
 
module.exports = function detectReporter(key) {
  switch (key) {
    case 'beauty':
      return (new BeautyLogReporter());
    case 'empty' :
      return (new EmptyLogReporter());
    case 'plain' :
    default:
      return (new PlainLogReporter());
  }
}