Skip to content

Commit

Permalink
[Tests] aria-role: Add valid test for <svg role="img" />
Browse files Browse the repository at this point in the history
See #936
  • Loading branch information
lb- authored and ljharb committed Oct 23, 2024
1 parent 0bc6378 commit daba189
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions __tests__/src/rules/aria-role-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ ruleTester.run('aria-role', rule, {
code: '<Box asChild="div" role="button" />',
settings: customDivSettings,
},
{
code: '<svg role="graphics-document document" />',
},
{ code: '<svg role="graphics-document document" />' },
{ code: '<svg role="img" />' },
)).concat(validTests).map(parserOptionsMapper),

invalid: parsers.all([].concat(
Expand Down

0 comments on commit daba189

Please sign in to comment.