Skip to content

Commit

Permalink
Throw error if aXe errored
Browse files Browse the repository at this point in the history
Only possible following 6369068

Make it easy to see that aXe had a problem running. In CI this error
would otherwise be ignored and it may look like accessibility tests
were passing.
  • Loading branch information
fofr committed Sep 15, 2017
1 parent 6369068 commit 78899b2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -153,7 +153,7 @@
document.addEventListener('DOMContentLoaded', function () {
AccessibilityTest('[data-module="test-a11y"]', function (err, violations, incompleteWarnings) {
if (err) {
return
_throwUncaughtError(err)
}
if (incompleteWarnings) _renderIncompleteWarnings(incompleteWarnings)
if (violations) _throwUncaughtError(violations)
Expand Down

0 comments on commit 78899b2

Please sign in to comment.