Remove @format and trailing commas from mapCoverage

Reviewed By: cpojer

Differential Revision: D6388338

fbshipit-source-id: ef33f530397e8ca3de8625b33333df2d57d228d3
This commit is contained in:
Rafael Oleza 2017-11-22 02:33:15 -08:00 committed by Facebook Github Bot
parent d4b7cb5d08
commit 4f3c4ca238
1 changed files with 2 additions and 3 deletions

View File

@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
*/
/**
@ -38,13 +37,13 @@ const reporter = createReporter();
const mapFileCoverage = fileCoverage => {
fileCoverage.path = fileCoverage.path.replace(
/(.*packages\/.*\/)(build)(\/.*)/,
'$1src$3',
'$1src$3'
);
return fileCoverage;
};
Object.keys(coverage).forEach(filename =>
map.addFileCoverage(mapFileCoverage(coverage[filename])),
map.addFileCoverage(mapFileCoverage(coverage[filename]))
);
reporter.addAll(['json', 'lcov', 'text']);