Skip to content

Commit 985fa01

Browse files
committed
update tests to reflect truth
1 parent 33fe0b0 commit 985fa01

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/role-supports-aria-props.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ ruleTester.run('role-supports-aria-props', rule, {
348348
},
349349
{
350350
code: '<aside aria-checked />',
351-
errors: [getErrorMessage('aria-checked', 'complementary')],
351+
errors: [getErrorMessage('aria-checked', 'generic')],
352352
},
353353
{
354354
code: '<ul aria-expanded />',
@@ -364,7 +364,7 @@ ruleTester.run('role-supports-aria-props', rule, {
364364
},
365365
{
366366
code: '<aside aria-expanded />',
367-
errors: [getErrorMessage('aria-expanded', 'complementary')],
367+
errors: [getErrorMessage('aria-expanded', 'generic')],
368368
},
369369
{
370370
code: '<article aria-expanded />',
@@ -392,6 +392,10 @@ ruleTester.run('role-supports-aria-props', rule, {
392392
},
393393
{
394394
code: '<section aria-expanded />',
395+
errors: [getErrorMessage('aria-expanded', 'generic')],
396+
},
397+
{
398+
code: '<section aria-label="something" aria-expanded />',
395399
errors: [getErrorMessage('aria-expanded', 'region')],
396400
},
397401
{

0 commit comments

Comments
 (0)