Skip to content

Commit

Permalink
fix: Can specify only some watermarks
Browse files Browse the repository at this point in the history
Merges in specified watermarks with the Istanbul defaults.

Closes karma-runner#144
  • Loading branch information
nmalaguti committed Apr 14, 2015
1 parent b063c7a commit 4f12c7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ var CoverageReporter = function(rootConfig, helper, logger) {
var sourceCache = globalSourceCache.getByBasePath(basePath);
var includeAllSources = config.includeAllSources === true;

if (config.watermarks) {
config.watermarks = helper.merge({}, istanbul.config.defaultConfig().reporting.watermarks, config.watermarks);
}

if (!helper.isDefined(reporters)) {
reporters = [config];
}
Expand Down

0 comments on commit 4f12c7b

Please sign in to comment.