diff --git a/lib/preprocessor.js b/lib/preprocessor.js index 39b2a23..ddace8b 100644 --- a/lib/preprocessor.js +++ b/lib/preprocessor.js @@ -69,9 +69,9 @@ var createCoveragePreprocessor = function(logger, basePath, reporters, coverageR var coverageObjMatch = coverageObjRegex.exec(instrumentedCode); if (coverageObjMatch !== null) { - var coverageObj = JSON.parse(coverageObjMatch[0]); - - coverageMap.add(coverageObj); + var coverageObj = JSON.parse(coverageObjMatch[0]); + + coverageMap.add(coverageObj); } }