Skip to content

Commit

Permalink
Chore: fix comment spacing in tests (#8405)
Browse files Browse the repository at this point in the history
  • Loading branch information
not-an-aardvark committed Apr 3, 2017
1 parent 9a9d916 commit 8842d7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/lib/rules/line-comment-position.js
Expand Up @@ -108,7 +108,7 @@ ruleTester.run("line-comment-position", rule, {
column: 1
}]
},
{ // deprecated option still works
{ // deprecated option still works
code: "// jscs: disable\n1 + 1;",
options: [{ position: "beside", applyDefaultPatterns: false }],
errors: [{
Expand All @@ -118,7 +118,7 @@ ruleTester.run("line-comment-position", rule, {
column: 1
}]
},
{ // new option name takes precedence
{ // new option name takes precedence
code: "// jscs: disable\n1 + 1;",
options: [{ position: "beside", applyDefaultIgnorePatterns: false, applyDefaultPatterns: true }],
errors: [{
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/util/node-event-generator.js
Expand Up @@ -222,13 +222,13 @@ describe("NodeEventGenerator", () => {
assertEmissions(
"[foo, 5, foo]",
["Identifier + Literal"],
ast => [["Identifier + Literal", ast.body[0].expression.elements[1]]] // 5
ast => [["Identifier + Literal", ast.body[0].expression.elements[1]]] // 5
);

assertEmissions(
"[foo, {}, 5]",
["Identifier + Literal", "Identifier ~ Literal"],
ast => [["Identifier ~ Literal", ast.body[0].expression.elements[2]]] // 5
ast => [["Identifier ~ Literal", ast.body[0].expression.elements[2]]] // 5
);

assertEmissions(
Expand Down

0 comments on commit 8842d7e

Please sign in to comment.