From afa0db2901e8b598ef53cdf07fe056f2a91e39fd Mon Sep 17 00:00:00 2001 From: Patrick Arlt Date: Sun, 19 Jul 2015 19:56:32 -0700 Subject: [PATCH] restore tests --- karma.conf.js | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index 0c2c7aadf..12e9338c5 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -24,16 +24,15 @@ module.exports = function (config) { // preprocess matching files before serving them to the browser // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - // preprocessors: { - // 'dist/**/*.js': ['sourcemap', 'coverage'] - // }, + preprocessors: { + 'dist/**/*.js': ['sourcemap', 'coverage'] + }, // test results reporter to use // possible values: 'dots', 'progress' // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ['progress'], - // reporters: ['mocha', 'coverage'], + reporters: ['mocha', 'coverage'], // web server port port: 9876, @@ -63,21 +62,21 @@ module.exports = function (config) { singleRun: true, // Configure the coverage reporters - // coverageReporter: { - // instrumenters: { - // isparta: require('isparta') - // }, - // instrumenter: { - // 'src/**/*.js': 'isparta' - // }, - // reporters: [ - // { - // type: 'html', - // dir: 'coverage/' - // }, { - // type: 'text' - // } - // ] - // } + coverageReporter: { + instrumenters: { + isparta: require('isparta') + }, + instrumenter: { + 'src/**/*.js': 'isparta' + }, + reporters: [ + { + type: 'html', + dir: 'coverage/' + }, { + type: 'text' + } + ] + } }); };