Skip to content

Commit

Permalink
fix: when using browserify dont create source code caching
Browse files Browse the repository at this point in the history
  • Loading branch information
piecyk committed Apr 20, 2015
1 parent d37cf0b commit 50030df
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 50030df

Please sign in to comment.