diff --git a/tests/lib/rules/button-has-type.js b/tests/lib/rules/button-has-type.js index 15e5257c24..da343af73e 100644 --- a/tests/lib/rules/button-has-type.js +++ b/tests/lib/rules/button-has-type.js @@ -118,6 +118,12 @@ ruleTester.run('button-has-type', rule, { pragma: 'Foo' } } + }, + { + code: 'function Button({ type, ...extraProps }) { const button = type; return