Skip to content

Commit c501b94

Browse files
committed
remove fragment with div
1 parent a4476d3 commit c501b94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

__tests__/src/rules/label-has-associated-control-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const htmlForValid = [
5050
{ code: '<CustomLabel htmlFor="js_id" aria-label="A label" />', options: [{ controlComponents: ['Custom*'] }] },
5151
{ code: '<CustomLabel htmlFor="js_id" aria-label="A label" />', options: [{ controlComponents: ['*Label'] }] },
5252
// Rule does not error if presence of accessible label cannot be determined
53-
{ code: '<><label htmlFor="js_id"><CustomText /></label><input id="js_id" /></>' },
53+
{ code: '<div><label htmlFor="js_id"><CustomText /></label><input id="js_id" /></div>' },
5454
];
5555
const nestingValid = [
5656
{ code: '<label>A label<input /></label>' },

0 commit comments

Comments
 (0)