diff --git a/scripts/utils/axe-runner.js b/scripts/utils/axe-runner.js index 1026e61..2a16451 100644 --- a/scripts/utils/axe-runner.js +++ b/scripts/utils/axe-runner.js @@ -51,7 +51,7 @@ async function runAxeTest(url, pageName) { } function calculateScore(violations, passes, incomplete) { - const total = violations.length + passes.length + incomplete.length; + const total = violations.length + passes + incomplete; if (total === 0) return 100; return ((passes / total) * 100).toFixed(1); }