Skip to content

Commit

Permalink
Merge pull request #124 from piecyk/fix-browserify
Browse files Browse the repository at this point in the history
fix: when using browserify dont create source code caching
  • Loading branch information
maksimr committed Apr 23, 2015
2 parents d37cf0b + 50030df commit 26b453e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ var CoverageReporter = function(rootConfig, helper, logger) {
var outputDir = helper.normalizeWinPath(path.resolve(basePath, generateOutputDir(browser.name,
reporterConfig.dir || config.dir,
reporterConfig.subdir || config.subdir)));

var _ = helper._;
var options = helper.merge({}, reporterConfig, {
dir : outputDir,
sourceStore : new SourceCacheStore({
sourceStore : _.isEmpty(sourceCache) ? null : new SourceCacheStore({
sourceCache: sourceCache
})
});
Expand Down
1 change: 1 addition & 0 deletions test/reporter.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ describe 'reporter', ->
mockReportCreate = sinon.stub().returns writeReport: mockWriteReport
mockMkdir = sinon.spy()
mockHelper =
_: helper._
isDefined: (v) -> helper.isDefined v
merge: (v...) -> helper.merge v...
mkdirIfNotExists: mockMkdir
Expand Down

0 comments on commit 26b453e

Please sign in to comment.