Skip to content

Commit d74173a

Browse files
committedApr 30, 2022
[Deps] update jsx-ast-utils
[Tests] `role-supports-aria-props`: add test case from jsx-eslint/jsx-ast-utils#116
1 parent fb20bc4 commit d74173a

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
 

‎__tests__/src/rules/role-supports-aria-props-test.js

+18
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,24 @@ ruleTester.run('role-supports-aria-props', rule, {
392392
{ code: '<div role="heading" aria-level />' },
393393
{ code: '<div role="heading" aria-level="1" />' },
394394

395+
{
396+
code: `
397+
const HelloThere = () => (
398+
<Hello
399+
role="searchbox"
400+
frag={
401+
<>
402+
<div>Hello</div>
403+
<div>There</div>
404+
</>
405+
}
406+
/>
407+
);
408+
409+
const Hello = (props) => <div>{props.frag}</div>;
410+
`,
411+
},
412+
395413
].concat(validTests).map(parserOptionsMapper),
396414

397415
invalid: [

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"damerau-levenshtein": "^1.0.8",
7676
"emoji-regex": "^9.2.2",
7777
"has": "^1.0.3",
78-
"jsx-ast-utils": "^3.2.2",
78+
"jsx-ast-utils": "^3.3.0",
7979
"language-tags": "^1.0.5",
8080
"minimatch": "^3.1.2",
8181
"semver": "^6.3.0"

0 commit comments

Comments
 (0)