Skip to content

Commit be06fa4

Browse files
committed
[Tests] jsx-no-bind: add passing test for #3034
Closes #3034
1 parent e324a19 commit be06fa4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/lib/rules/jsx-no-bind.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@ ruleTester.run('jsx-no-bind', rule, {
3535
{
3636
code: '<div onClick={this._handleClick}></div>'
3737
},
38+
{
39+
code: '<div onClick={this._handleClick}></div>',
40+
options: [{}]
41+
},
42+
{
43+
code: '<Foo onClick={this._handleClick} />'
44+
},
45+
{
46+
code: '<Foo onClick={this._handleClick} />',
47+
options: [{}]
48+
},
3849
{
3950
code: '<div meaningOfLife={42}></div>'
4051
},

0 commit comments

Comments
 (0)