Skip to content

Commit

Permalink
Add two test cases found while upgrading to ARIA 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebeach committed Jun 17, 2020
1 parent f87561d commit 121e8a4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions __tests__/src/rules/role-has-required-aria-props-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,13 @@ ruleTester.run('role-has-required-aria-props', rule, {
code: '<div role="scrollbar" aria-valuemin aria-valuenow />',
errors: [errorMessage('scrollbar')],
},
{
code: '<div role="heading" />',
errors: [errorMessage('heading')],
},
{
code: '<div role="option" />',
errors: [errorMessage('option')],
},
].map(parserOptionsMapper),
});

0 comments on commit 121e8a4

Please sign in to comment.