Skip to content

Commit e94a52b

Browse files
committed
[Fix] correctly pass options in label-has-for test
1 parent d3371da commit e94a52b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

__tests__/src/rules/label-has-for-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ ruleTester.run('label-has-for', rule, {
9696
{ code: '<label><input /></label>', options: optionsRequiredNesting },
9797
{ code: '<label htmlFor="input"><input /></label>', options: optionsRequiredEvery },
9898
{ code: '<label><input /></label>', options: optionsChildrenAllowed },
99-
{ code: '<Descriptor htmlFor="foo">Test!</Descriptor>', options: [assign({}, optionsComponents, optionsChildrenAllowed)] },
99+
{ code: '<Descriptor htmlFor="foo">Test!</Descriptor>', options: [assign({}, optionsComponents[0], optionsChildrenAllowed)] },
100100
{ code: '<label>Test!</label>', options: optionsChildrenAllowed },
101101
{ code: '<label htmlFor="foo">Test!</label>', options: optionsChildrenAllowed },
102102
{ code: '<label>{children}</label>', options: optionsChildrenAllowed },

0 commit comments

Comments
 (0)