Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
pfhayes committed Dec 20, 2017
1 parent eb7e152 commit bb34372
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/lib/rules/no-access-state-in-setstate.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ ruleTester.run('no-access-state-in-setstate', rule, {
'});'
].join('\n'),
parserOptions: parserOptions
}, {
// https://github.com/yannickcr/eslint-plugin-react/pull/1611
code: `
function testFunction({a, b}) {
};
`,
parserOptions: parserOptions
}],

invalid: [{
Expand Down

0 comments on commit bb34372

Please sign in to comment.