Skip to content

Commit

Permalink
Chore: add some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Apr 2, 2019
1 parent e16afa9 commit b660d76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/lib/rules/no-confusing-arrow.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const ruleTester = new RuleTester({ parserOptions: { ecmaVersion: 6 } });
ruleTester.run("no-confusing-arrow", rule, {
valid: [
"a => { return 1 ? 2 : 3; }",
{ code: "a => { return 1 ? 2 : 3; }", options: [{ allowParens: false }] },
"var x = a => { return 1 ? 2 : 3; }",
"var x = (a) => { return 1 ? 2 : 3; }",
{ code: "var x = a => (1 ? 2 : 3)", options: [{ allowParens: true }] },
Expand Down

0 comments on commit b660d76

Please sign in to comment.