Skip to content

Improved output in case if no violations found

Latest
Compare
Choose a tag to compare
@lpelypenko lpelypenko released this 27 Oct 03:27

Fix the use case of no output in case of no violations were found.
Old behavior:

        prettyPrintAxeReport({
            violations: [],
            url: 'www.example.com',
        });

no output
New behavior:

        prettyPrintAxeReport({
            violations: [],
            url: 'www.example.com',
        });

Outputs:
No accessibility violations were detected for the www.example.com