Skip to content

Commit

Permalink
Chore: add tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
薛定谔的猫 committed Sep 30, 2017
1 parent 971e15d commit 3ba392a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/lib/rules/lines-between-class-members.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ ruleTester.run("lines-between-class-members", rule, {
"class foo{ bar(){}\n\n/*comments*/baz(){}}",
"class foo{ bar(){}\n\n//comments\nbaz(){}}",

// skip empty;
"class foo{ bar(){}\n\n;baz(){}}",
"class foo{ bar(){};\n\nbaz(){}}",

{ code: "class foo{ bar(){}\nbaz(){}}", options: ["never"] },
{ code: "class foo{ bar(){}\n/*comments*/baz(){}}", options: ["never"] },
{ code: "class foo{ bar(){}\n//comments\nbaz(){}}", options: ["never"] },
Expand Down

0 comments on commit 3ba392a

Please sign in to comment.