Skip to content

Commit

Permalink
fix(preprocessor): Use _.includes instead of _.contains
Browse files Browse the repository at this point in the history
Support lodash 4.5.0
Closes #212
  • Loading branch information
Dan Watling committed Feb 24, 2016
1 parent 1ba61bc commit 3c769d5
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 3c769d5

Please sign in to comment.