Skip to content

Commit

Permalink
update tests to reflect truth
Browse files Browse the repository at this point in the history
  • Loading branch information
khiga8 committed Jul 10, 2023
1 parent 33fe0b0 commit 985fa01
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/role-supports-aria-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ ruleTester.run('role-supports-aria-props', rule, {
},
{
code: '<aside aria-checked />',
errors: [getErrorMessage('aria-checked', 'complementary')],
errors: [getErrorMessage('aria-checked', 'generic')],
},
{
code: '<ul aria-expanded />',
Expand All @@ -364,7 +364,7 @@ ruleTester.run('role-supports-aria-props', rule, {
},
{
code: '<aside aria-expanded />',
errors: [getErrorMessage('aria-expanded', 'complementary')],
errors: [getErrorMessage('aria-expanded', 'generic')],
},
{
code: '<article aria-expanded />',
Expand Down Expand Up @@ -392,6 +392,10 @@ ruleTester.run('role-supports-aria-props', rule, {
},
{
code: '<section aria-expanded />',
errors: [getErrorMessage('aria-expanded', 'generic')],
},
{
code: '<section aria-label="something" aria-expanded />',
errors: [getErrorMessage('aria-expanded', 'region')],
},
{
Expand Down

0 comments on commit 985fa01

Please sign in to comment.