Skip to content

Commit c0c337a

Browse files
authored
Regression test for jsx-eslint#2125
1 parent e25a88c commit c0c337a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/lib/rules/prop-types.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2296,6 +2296,13 @@ ruleTester.run('prop-types', rule, {
22962296
export const Unconnected = Foo;
22972297
export default connect(Foo);
22982298
`
2299+
}, {
2300+
code: `
2301+
const a={};
2302+
function fn1(){}
2303+
const b=a::fn1();
2304+
`,
2305+
parser: 'babel-eslint'
22992306
}
23002307
],
23012308

0 commit comments

Comments
 (0)