Skip to content

Commit

Permalink
Merge pull request #213 from dwatling/upgrade-lodash
Browse files Browse the repository at this point in the history
fix(preprocessor): Use _.includes instead of _.contains
  • Loading branch information
dignifiedquire committed Feb 24, 2016
2 parents 1ba61bc + 3c769d5 commit 75006b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/preprocessor.js
Expand Up @@ -53,7 +53,7 @@ function createCoveragePreprocessor (logger, helper, basePath, reporters, covera
}, {})

// if coverage reporter is not used, do not preprocess the files
if (!_.contains(reporters, 'coverage')) {
if (!_.includes(reporters, 'coverage')) {
return function (content, _, done) {
done(content)
}
Expand All @@ -62,7 +62,7 @@ function createCoveragePreprocessor (logger, helper, basePath, reporters, covera
// check instrumenter override requests
function checkInstrumenters () {
return _.reduce(instrumenterOverrides, function (acc, literal, pattern) {
if (!_.contains(_.keys(instrumenters), String(literal))) {
if (!_.includes(_.keys(instrumenters), String(literal))) {
log.error('Unknown instrumenter: %s', literal)
return false
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -45,7 +45,7 @@
"karma-firefox-launcher": "^0.1.6",
"karma-mocha": "^0.2.0",
"load-grunt-tasks": "^3.2.0",
"lodash": "^3.9.3",
"lodash": "^4.5.0",
"mocha": "^2.2.5",
"mocks": "0.0.15",
"sinon": "^1.14.1",
Expand Down

0 comments on commit 75006b7

Please sign in to comment.