Skip to content

Commit

Permalink
remove endColumn from invalid test cases
Browse files Browse the repository at this point in the history
It seems to always throw errors in ESLint v3
  • Loading branch information
Belco90 committed Feb 13, 2022
1 parent af75212 commit 7d9713e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/lib/rules/jsx-no-leaked-zero.js
Expand Up @@ -107,7 +107,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
line: 3,
column: 22,
endColumn: 27,
}],
output: `
const Component = ({ count, title }) => {
Expand All @@ -126,7 +125,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
line: 3,
column: 22,
endColumn: 27,
}],
output: `
const Component = ({ count }) => {
Expand All @@ -145,7 +143,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
line: 3,
column: 22,
endColumn: 37,
}],
output: `
const Component = ({ elements }) => {
Expand All @@ -164,7 +161,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
line: 3,
column: 22,
endColumn: 54,
}],
output: `
const Component = ({ nestedCollection }) => {
Expand All @@ -183,7 +179,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
line: 3,
column: 22,
endColumn: 33,
}],
output: `
const Component = ({ elements }) => {
Expand All @@ -202,7 +197,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
line: 3,
column: 23,
endColumn: 41,
}],
output: `
const Component = ({ numberA, numberB }) => {
Expand All @@ -222,7 +216,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
line: 3,
column: 22,
endColumn: 27,
}],
output: `
const Component = ({ count, title }) => {
Expand All @@ -240,7 +233,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
line: 3,
column: 22,
endColumn: 27,
}],
output: `
const Component = ({ count }) => {
Expand All @@ -258,7 +250,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
line: 3,
column: 22,
endColumn: 37,
}],
output: `
const Component = ({ elements }) => {
Expand All @@ -276,7 +267,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
line: 3,
column: 22,
endColumn: 54,
}],
output: `
const Component = ({ nestedCollection }) => {
Expand All @@ -294,7 +284,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
line: 3,
column: 22,
endColumn: 33,
}],
output: `
const Component = ({ elements }) => {
Expand All @@ -313,7 +302,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
line: 3,
column: 23,
endColumn: 41,
}],
output: `
const Component = ({ numberA, numberB }) => {
Expand Down

0 comments on commit 7d9713e

Please sign in to comment.