We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4900ca4 commit 0d4f8feCopy full SHA for 0d4f8fe
test/linters/accessibility/avoid_generic_link_text_counter_test.rb
@@ -82,16 +82,7 @@ def test_flags_when_aria_label_does_not_include_visible_link_text
82
83
def test_does_not_flag_when_aria_label_includes_visible_link_text
84
@file = <<~ERB
85
- <a aria-label="Learn more about GitHub Sponsors">Learn more.</a>
86
- ERB
87
- @linter.run(processed_source)
88
-
89
- assert_empty @linter.offenses
90
- end
91
92
- def test_does_not_flag_when_aria_label_includes_visible_link_text_insensitive_case_and_puncutation
93
- @file = <<~ERB
94
- <a aria-label="Learn more about GitHub Sponsors">LEARN MORE!</a>
+ <a aria-label="Learn more about GitHub Sponsors.">Learn more.</a>
95
ERB
96
@linter.run(processed_source)
97
0 commit comments