Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Use output: null to assert that a test case is not autofixed. #8960

Merged
merged 1 commit into from
Jul 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/lib/rules/array-bracket-newline.js
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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