A11yAudit.Assertions (A11y Audit v0.3.0)
View SourceExUnit assertions
Summary
Functions
Asserts that the given audit results have no violations.
Types
Functions
@spec assert_no_violations(A11yAudit.Results.t(), opts()) :: nil | no_return()
Asserts that the given audit results have no violations.
Options
:filter- A module implementing theA11yAudit.ViolationFilterbehavior that will be used to exclude violations matching the filter from the results. Defaults tonil(no excluded violations).:violations_print_limit- The maximum number of violations that will be printed in the error when the assertion fails. Can be an integer or:infinity. Defaults to:infinity.:nodes_per_violation_print_limit- The maximum number of nodes that will be printed for each violation when the assertion fails. Can be an integer or:infinity. Defaults to 5.:node_html_print_limit- The maximum length of the HTML snippet that will be printed for each node when the assertion fails. Can be an integer or:infinity. Defaults to 100.