Skip to content

Commit

Permalink
remove fragment with div
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyLevin committed Aug 22, 2024
1 parent a4476d3 commit c501b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/src/rules/label-has-associated-control-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const htmlForValid = [
{ code: '<CustomLabel htmlFor="js_id" aria-label="A label" />', options: [{ controlComponents: ['Custom*'] }] },
{ code: '<CustomLabel htmlFor="js_id" aria-label="A label" />', options: [{ controlComponents: ['*Label'] }] },
// Rule does not error if presence of accessible label cannot be determined
{ code: '<><label htmlFor="js_id"><CustomText /></label><input id="js_id" /></>' },
{ code: '<div><label htmlFor="js_id"><CustomText /></label><input id="js_id" /></div>' },
];
const nestingValid = [
{ code: '<label>A label<input /></label>' },
Expand Down

0 comments on commit c501b94

Please sign in to comment.