Skip to content

Commit

Permalink
Add failing testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
khiga8 committed Sep 26, 2023
1 parent 8ae414c commit 9159923
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/a11y-role-supports-aria-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ function getErrorMessage(attribute, role) {

ruleTester.run('a11y-role-supports-aria-props', rule, {
valid: [
{
code: `
<div
id={id}
role={
sectionHasHeader && rowIndex.row === 0 ? 'presentation' : 'option'
}
aria-label={this.props.ariaLabel}
>
{children}
</div>`,
},
{code: '<Foo bar />'},
{code: '<div />'},
{code: '<div id="main" />'},
Expand Down

0 comments on commit 9159923

Please sign in to comment.