From b6bf5ae27a421d18f66246347e88b00028012f3c Mon Sep 17 00:00:00 2001 From: blond Date: Tue, 9 Aug 2016 09:45:01 +0300 Subject: [PATCH] refactor(lodash): use `omitBy` instead of `omit` --- lib/runner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/runner.js b/lib/runner.js index 49e0a1c..0232f20 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -90,7 +90,7 @@ function filterAndSaveCoverage(coverage, opts) { } function filterCoverage(coverage, exclude) { - return _.omit(coverage, function (value, fileName) { + return _.omitBy(coverage, function (value, fileName) { return exclude.some(function (pattern) { return minimatch(fileName, pattern, { matchBase: true }); });