Skip to content

Commit bb34372

Browse files
committed
Add test
1 parent eb7e152 commit bb34372

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/lib/rules/no-access-state-in-setstate.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ ruleTester.run('no-access-state-in-setstate', rule, {
7575
'});'
7676
].join('\n'),
7777
parserOptions: parserOptions
78+
}, {
79+
// https://github.com/yannickcr/eslint-plugin-react/pull/1611
80+
code: `
81+
function testFunction({a, b}) {
82+
};
83+
`,
84+
parserOptions: parserOptions
7885
}],
7986

8087
invalid: [{

0 commit comments

Comments
 (0)