Skip to content

Commit

Permalink
Chore: remove output:null from tests
Browse files Browse the repository at this point in the history
This feature is supported since v3.17.0.
eslint/eslint@18a519f
  • Loading branch information
mysticatea committed Oct 3, 2017
1 parent 05817dc commit bfb5fa7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/lib/rules/no-useless-rest-spread.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,32 +120,32 @@ ruleTester.run("no-useless-rest-spread", rule, {
// Don't auto-fix if the inner array has holes.
{
code: "let list = [a, ...[,]]",
output: null,
output: "let list = [a, ...[,]]",
errors: ["Redundant spread element."],
},
{
code: "let list = [a, ...[b,,c]]",
output: null,
output: "let list = [a, ...[b,,c]]",
errors: ["Redundant spread element."],
},
{
code: "foo(a, ...[,])",
output: null,
output: "foo(a, ...[,])",
errors: ["Redundant spread element."],
},
{
code: "let [a, ...[,]] = list",
output: null,
output: "let [a, ...[,]] = list",
errors: ["Redundant rest element."],
},
{
code: "let [a, ...[,]] = list",
output: null,
output: "let [a, ...[,]] = list",
errors: ["Redundant rest element."],
},
{
code: "function foo(a, ...[,]) {}",
output: null,
output: "function foo(a, ...[,]) {}",
errors: ["Redundant rest parameter."],
},
],
Expand Down

0 comments on commit bfb5fa7

Please sign in to comment.