Skip to content

Commit

Permalink
Chore: fix output assertion typos in rule tests (#8129)
Browse files Browse the repository at this point in the history
Several rule test files have typos preventing output from being asserted properly. This commit fixes the typos.

These typos were discovered with the [`consistent-output`](https://github.com/not-an-aardvark/eslint-plugin-eslint-plugin/blob/090091e0d36b2a739dbee736ccf732ea2c9f10ab/docs/rules/consistent-output.md) rule.
  • Loading branch information
not-an-aardvark authored and gyandeeps committed Feb 22, 2017
1 parent 9fa2559 commit 8d95598
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/lib/rules/comma-dangle.js
Expand Up @@ -760,7 +760,7 @@ ruleTester.run("comma-dangle", rule, {
},
{
code: "var foo = { bar: 'baz', }",
ouput: "var foo = { bar: 'baz' }",
output: "var foo = { bar: 'baz' }",
options: ["only-multiline"],
errors: [
{
Expand Down Expand Up @@ -799,7 +799,7 @@ ruleTester.run("comma-dangle", rule, {
},
{
code: "foo({ bar: 'baz', qux: 'quux', });",
ouput: "foo({ bar: 'baz', qux: 'quux' });",
output: "foo({ bar: 'baz', qux: 'quux' });",
options: ["only-multiline"],
errors: [
{
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/rules/computed-property-spacing.js
Expand Up @@ -156,7 +156,7 @@ ruleTester.run("computed-property-spacing", rule, {
},
{
code: "obj[ foo ]",
outptu: "obj[foo]",
output: "obj[foo]",
options: ["never"],
errors: [
{
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/rules/newline-after-var.js
Expand Up @@ -285,7 +285,7 @@ ruleTester.run("newline-after-var", rule, {
{ code: TWO_BLANKS, output: NO_BLANK, options: ["never"], errors: [NEVER_ERROR] },
{ code: THREE_BLANKS, output: NO_BLANK, options: ["never"], errors: [NEVER_ERROR] },
{ code: ONE_BLANK_WITH_TRAILING_WS, output: NO_BLANK_WITH_TRAILING_WS, options: ["never"], errors: [NEVER_ERROR] },
{ code: ONE_BLANK_WITH_INLINE_COMMENT, NO_BLANK_WITH_INLINE_COMMENT, options: ["never"], errors: [NEVER_ERROR] },
{ code: ONE_BLANK_WITH_INLINE_COMMENT, output: NO_BLANK_WITH_INLINE_COMMENT, options: ["never"], errors: [NEVER_ERROR] },
{ code: MULTI_VAR_ONE_BLANK, output: MULTI_VAR_NO_BLANK, options: ["never"], errors: [NEVER_ERROR] },
{ code: MULTI_DEC_ONE_BLANK, output: MULTI_DEC_NO_BLANK, options: ["never"], errors: [NEVER_ERROR] },
{ code: MULTI_LINE_ONE_BLANK, output: MULTI_LINE_NO_BLANK, options: ["never"], errors: [NEVER_ERROR] },
Expand Down

0 comments on commit 8d95598

Please sign in to comment.