Skip to content

Commit

Permalink
[Deps] update jsx-ast-utils
Browse files Browse the repository at this point in the history
[Tests] `role-supports-aria-props`: add test case from jsx-eslint/jsx-ast-utils#116
  • Loading branch information
ljharb committed Apr 30, 2022
1 parent fb20bc4 commit d74173a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions __tests__/src/rules/role-supports-aria-props-test.js
Expand Up @@ -392,6 +392,24 @@ ruleTester.run('role-supports-aria-props', rule, {
{ code: '<div role="heading" aria-level />' },
{ code: '<div role="heading" aria-level="1" />' },

{
code: `
const HelloThere = () => (
<Hello
role="searchbox"
frag={
<>
<div>Hello</div>
<div>There</div>
</>
}
/>
);
const Hello = (props) => <div>{props.frag}</div>;
`,
},

].concat(validTests).map(parserOptionsMapper),

invalid: [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -75,7 +75,7 @@
"damerau-levenshtein": "^1.0.8",
"emoji-regex": "^9.2.2",
"has": "^1.0.3",
"jsx-ast-utils": "^3.2.2",
"jsx-ast-utils": "^3.3.0",
"language-tags": "^1.0.5",
"minimatch": "^3.1.2",
"semver": "^6.3.0"
Expand Down

0 comments on commit d74173a

Please sign in to comment.