Skip to content

Commit

Permalink
fix(istanbul-reports): Remove isRoot check causing incorrect report f…
Browse files Browse the repository at this point in the history
…ormatting (#66). (#382)
  • Loading branch information
coderica authored and coreyfarrell committed May 1, 2019
1 parent 90e60cc commit df6e994
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/istanbul-reports/lib/cobertura/index.js
Expand Up @@ -57,9 +57,6 @@ CoberturaReport.prototype.writeRootStats = function(node) {
};

CoberturaReport.prototype.onSummary = function(node) {
if (node.isRoot()) {
return;
}
const metrics = node.getCoverageSummary(true);
if (!metrics) {
return;
Expand All @@ -72,10 +69,7 @@ CoberturaReport.prototype.onSummary = function(node) {
this.xml.openTag('classes');
};

CoberturaReport.prototype.onSummaryEnd = function(node) {
if (node.isRoot()) {
return;
}
CoberturaReport.prototype.onSummaryEnd = function() {
this.xml.closeTag('classes');
this.xml.closeTag('package');
};
Expand Down

0 comments on commit df6e994

Please sign in to comment.