Skip to content

Commit

Permalink
Chore: Use output: null to assert that a test case is not autofixed. (
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add authored and platinumazure committed Jul 18, 2017
1 parent e639358 commit d09288a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/lib/rules/array-bracket-newline.js
Expand Up @@ -505,7 +505,7 @@ ruleTester.run("array-bracket-newline", rule, {
{
code: "var foo = [\n// any comment\n];",
options: [{ multiline: true }],
output: "var foo = [\n// any comment\n];",
output: null,
errors: [
{
message: ERR_NO_BREAK_AFTER,
Expand Down
6 changes: 3 additions & 3 deletions tests/lib/rules/array-element-newline.js
Expand Up @@ -368,7 +368,7 @@ ruleTester.run("array-element-newline", rule, {
{
code: "var foo = [\n1 // any comment\n, 2\n];",
options: ["never"],
output: "var foo = [\n1 // any comment\n, 2\n];",
output: null,
errors: [
{
message: ERR_NO_BREAK_HERE,
Expand All @@ -380,7 +380,7 @@ ruleTester.run("array-element-newline", rule, {
{
code: "var foo = [\n1, // any comment\n2\n];",
options: ["never"],
output: "var foo = [\n1, // any comment\n2\n];",
output: null,
errors: [
{
message: ERR_NO_BREAK_HERE,
Expand Down Expand Up @@ -437,7 +437,7 @@ ruleTester.run("array-element-newline", rule, {
{
code: "var foo = [\nfunction foo() {\ndosomething();\n}, /* any comment */\nfunction bar() {\ndosomething();\n}\n];",
options: ["never"],
output: "var foo = [\nfunction foo() {\ndosomething();\n}, /* any comment */\nfunction bar() {\ndosomething();\n}\n];",
output: null,
errors: [
{
message: ERR_NO_BREAK_HERE,
Expand Down

0 comments on commit d09288a

Please sign in to comment.