diff --git a/lib/preprocessor.js b/lib/preprocessor.js index 95f603b..1181e64 100644 --- a/lib/preprocessor.js +++ b/lib/preprocessor.js @@ -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) } @@ -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 } diff --git a/package.json b/package.json index 5b09d96..0f6eadb 100644 --- a/package.json +++ b/package.json @@ -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",