Skip to content

Commit f847d58

Browse files
add tests
1 parent 5b6dd1e commit f847d58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/lib/rules/prefer-arrow-callback.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ ruleTesterTypeScript.run("prefer-arrow-callback", rule, {
286286
"foo(function bar() { this; }.bind(this, somethingElse));",
287287
"foo((function() {}).bind.bar)",
288288
"foo((function() { this.bar(); }).bind(obj).bind(this))",
289+
"test('clean', function (this: any) { this.foo = 'Cleaned!';});",
290+
"obj.test('clean', function (foo) { this.foo = 'Cleaned!'; });",
289291
],
290292
invalid: [
291293
{

0 commit comments

Comments
 (0)