Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
fix: fixed bug when excludedFiles were being treated like changedFile…
Browse files Browse the repository at this point in the history
…s and vice-versa.
  • Loading branch information
johnsouza-loftbr committed Apr 14, 2022
1 parent 58c19f3 commit 591c80c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function run() {
let totalFinds = 0;
let totalHits = 0;
data.forEach((element) => {
if (shouldCalculateCoverageForFile(element['file'], excludedFiles, changedFiles)) {
if (shouldCalculateCoverageForFile(element['file'], changedFiles, excludedFiles)) {
totalFinds += element['lines']['found'];
totalHits += element['lines']['hit'];

Expand Down

0 comments on commit 591c80c

Please sign in to comment.