Skip to content

Commit

Permalink
fix: remove usage of the deprecated helper._
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Lewis committed Jul 8, 2016
1 parent a0d8dba commit dacf9e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
var istanbul = require('istanbul')
var minimatch = require('minimatch')
var path = require('path')
var _ = require('lodash')
var SourceMapConsumer = require('source-map').SourceMapConsumer
var SourceMapGenerator = require('source-map').SourceMapGenerator
var globalSourceCache = require('./source-cache')
Expand All @@ -22,7 +23,6 @@ var coverageObjRegex = /\{.*"path".*"fnMap".*"statementMap".*"branchMap".*\}/g

// Preprocessor creator function
function createCoveragePreprocessor (logger, helper, basePath, reporters, coverageReporter) {
var _ = helper._
var log = logger.create('preprocessor.coverage')

// Options
Expand Down
2 changes: 1 addition & 1 deletion lib/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
var path = require('path')
var istanbul = require('istanbul')
var minimatch = require('minimatch')
var _ = require('lodash')

var globalSourceCache = require('./source-cache')
var coverageMap = require('./coverage-map')
Expand All @@ -28,7 +29,6 @@ function isAbsolute (file) {

// TODO(vojta): inject only what required (config.basePath, config.coverageReporter)
var CoverageReporter = function (rootConfig, helper, logger, emitter) {
var _ = helper._
var log = logger.create('coverage')

// Instance variables
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
],
"author": "SATO taichi <ryushi@gmail.com>",
"dependencies": {
"istanbul": "^0.4.0",
"dateformat": "^1.0.6",
"istanbul": "^0.4.0",
"lodash": "^3.8.0",
"minimatch": "^3.0.0",
"source-map": "^0.5.1"
},
Expand All @@ -47,7 +48,6 @@
"karma-mocha": "1.x || ^0.2.0",
"karma-requirejs": "1.x || ^0.2.2",
"load-grunt-tasks": "^3.2.0",
"lodash": "^4.5.0",
"mocha": "^2.2.5",
"mocks": "0.0.15",
"requirejs": "^2.1.20",
Expand Down

0 comments on commit dacf9e9

Please sign in to comment.