Skip to content

Commit 159913f

Browse files
committed
test(axe): fix stale deprecated-rule rationale in fixture comment
Commit 8962799 corrected this rationale in the inline comment near the wcag2a test assertion but missed the near-duplicate at the top-of-file fixture comment, which still claimed tag-based runOnly would resurrect deprecated rules. It doesn't — axe's default tagExclude already keeps them out; the explicit override just makes that self-contained.
1 parent 13b7e59 commit 159913f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎tests/unit/axe-standard-tags.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ import {
2121
} from "../../src/resources/formats/html/axe/axe-check.js";
2222

2323
// A miniature rule catalog covering the cases axeScopeOptions must
24-
// distinguish: current rules at several levels, a deprecated rule that a tag
25-
// list would otherwise resurrect, a deprecated rule whose only wcag tag is
24+
// distinguish: current rules at several levels, a deprecated rule that
25+
// matches a selected wcag tag and is explicitly disabled by axeScopeOptions
26+
// as a self-contained guard, a deprecated rule whose only wcag tag is
2627
// obsolete, and a best-practice rule.
2728
const rules = [
2829
{ ruleId: "image-alt", tags: ["cat.text-alternatives", "wcag2a", "wcag111"] },

0 commit comments

Comments
 (0)