Skip to content

Commit

Permalink
init counts
Browse files Browse the repository at this point in the history
  • Loading branch information
tombrunet committed Aug 24, 2024
1 parent 6de1516 commit a957835
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions common/module/src/report/ReporterManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,10 @@ export class ReporterManager {
}
});

(retVal as any).summary = {};
retVal.summary.counts = ReporterManager.addCounts(engineResult as any);
(retVal as any).summary = {
counts: engineResult.summary.counts
};
retVal.summary.counts = ReporterManager.addCounts(retVal);

retVal.results = retVal.results.filter(pageResult => {
if (ReporterManager.config.reportLevels.includes(pageResult.level)) {
Expand Down
4 changes: 3 additions & 1 deletion karma-accessibility-checker/src/lib/ReporterManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ class ReporterManager {
}
});

retVal.summary = {};
retVal.summary = {
counts: retVal.summary.counts
};
retVal.summary.counts = ReporterManager.addCounts(retVal);

retVal.results = retVal.results.filter(pageResult => {
Expand Down

0 comments on commit a957835

Please sign in to comment.