From 6fe34d71933a5bae7eaa958f6ac73cca6ac08337 Mon Sep 17 00:00:00 2001 From: Jakub Szwacz Date: Tue, 27 Sep 2016 22:37:53 +0200 Subject: [PATCH] Simplify a bit and obey code convention --- scripts/istanbul-reporter.js | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/scripts/istanbul-reporter.js b/scripts/istanbul-reporter.js index 73a6313b0..71d5ef6d3 100644 --- a/scripts/istanbul-reporter.js +++ b/scripts/istanbul-reporter.js @@ -1,18 +1,6 @@ -var istanbul = require('istanbul'), +var istanbul = require('istanbul'); -/** - * Expose `Istanbul`. - */ -exports = module.exports = Istanbul; - -/** - * Initialize a new Istanbul reporter. - * - * @param {Runner} runner - * @param {Object} options - * @public - */ -function Istanbul(runner, options) { +module.exports = function (runner, options) { mocha.reporters.Base.call(this, runner); var reporterOpts = { dir: 'coverage' }, @@ -35,5 +23,4 @@ function Istanbul(runner, options) { }); }); - -} +};