Skip to content

Commit

Permalink
Remove endLine/Column tests: not supported in ESLint 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnajdr committed Jun 26, 2018
1 parent a5ded4d commit 248c2ca
Showing 1 changed file with 21 additions and 63 deletions.
84 changes: 21 additions & 63 deletions tests/lib/rules/no-deprecated.js
Expand Up @@ -226,9 +226,7 @@ ruleTester.run('no-deprecated', rule, {
),
type: 'Identifier',
line: 3,
column: 11,
endLine: 3,
endColumn: 29
column: 11
},
{
message: errorMessage(
Expand All @@ -237,19 +235,15 @@ ruleTester.run('no-deprecated', rule, {
),
type: 'Identifier',
line: 4,
column: 11,
endLine: 4,
endColumn: 36
column: 11
},
{
message: errorMessage('componentWillUpdate', '16.3.0', 'UNSAFE_componentWillUpdate',
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
),
type: 'Identifier',
line: 5,
column: 11,
endLine: 5,
endColumn: 30
column: 11
}
]
},
Expand All @@ -271,9 +265,7 @@ ruleTester.run('no-deprecated', rule, {
),
type: 'Identifier',
line: 4,
column: 13,
endLine: 4,
endColumn: 31
column: 13
},
{
message: errorMessage(
Expand All @@ -282,19 +274,15 @@ ruleTester.run('no-deprecated', rule, {
),
type: 'Identifier',
line: 5,
column: 13,
endLine: 5,
endColumn: 38
column: 13
},
{
message: errorMessage('componentWillUpdate', '16.3.0', 'UNSAFE_componentWillUpdate',
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
),
type: 'Identifier',
line: 6,
column: 13,
endLine: 6,
endColumn: 32
column: 13
}
]
},
Expand All @@ -314,9 +302,7 @@ ruleTester.run('no-deprecated', rule, {
),
type: 'Identifier',
line: 3,
column: 11,
endLine: 3,
endColumn: 29
column: 11
},
{
message: errorMessage(
Expand All @@ -325,19 +311,15 @@ ruleTester.run('no-deprecated', rule, {
),
type: 'Identifier',
line: 4,
column: 11,
endLine: 4,
endColumn: 36
column: 11
},
{
message: errorMessage('componentWillUpdate', '16.3.0', 'UNSAFE_componentWillUpdate',
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
),
type: 'Identifier',
line: 5,
column: 11,
endLine: 5,
endColumn: 30
column: 11
}
]
},
Expand All @@ -357,9 +339,7 @@ ruleTester.run('no-deprecated', rule, {
),
type: 'Identifier',
line: 3,
column: 11,
endLine: 3,
endColumn: 29
column: 11
},
{
message: errorMessage(
Expand All @@ -368,19 +348,15 @@ ruleTester.run('no-deprecated', rule, {
),
type: 'Identifier',
line: 4,
column: 11,
endLine: 4,
endColumn: 36
column: 11
},
{
message: errorMessage('componentWillUpdate', '16.3.0', 'UNSAFE_componentWillUpdate',
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
),
type: 'Identifier',
line: 5,
column: 11,
endLine: 5,
endColumn: 30
column: 11
}
]
},
Expand All @@ -400,9 +376,7 @@ ruleTester.run('no-deprecated', rule, {
),
type: 'Identifier',
line: 3,
column: 11,
endLine: 3,
endColumn: 29
column: 11
},
{
message: errorMessage(
Expand All @@ -411,19 +385,15 @@ ruleTester.run('no-deprecated', rule, {
),
type: 'Identifier',
line: 4,
column: 11,
endLine: 4,
endColumn: 36
column: 11
},
{
message: errorMessage('componentWillUpdate', '16.3.0', 'UNSAFE_componentWillUpdate',
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
),
type: 'Identifier',
line: 5,
column: 11,
endLine: 5,
endColumn: 30
column: 11
}
]
},
Expand All @@ -443,9 +413,7 @@ ruleTester.run('no-deprecated', rule, {
),
type: 'Identifier',
line: 3,
column: 11,
endLine: 3,
endColumn: 29
column: 11
},
{
message: errorMessage(
Expand All @@ -454,19 +422,15 @@ ruleTester.run('no-deprecated', rule, {
),
type: 'Identifier',
line: 4,
column: 11,
endLine: 4,
endColumn: 36
column: 11
},
{
message: errorMessage('componentWillUpdate', '16.3.0', 'UNSAFE_componentWillUpdate',
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
),
type: 'Identifier',
line: 5,
column: 11,
endLine: 5,
endColumn: 30
column: 11
}
]
},
Expand All @@ -487,9 +451,7 @@ ruleTester.run('no-deprecated', rule, {
),
type: 'Identifier',
line: 4,
column: 11,
endLine: 4,
endColumn: 29
column: 11
},
{
message: errorMessage(
Expand All @@ -498,19 +460,15 @@ ruleTester.run('no-deprecated', rule, {
),
type: 'Identifier',
line: 5,
column: 11,
endLine: 5,
endColumn: 36
column: 11
},
{
message: errorMessage('componentWillUpdate', '16.3.0', 'UNSAFE_componentWillUpdate',
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
),
type: 'Identifier',
line: 6,
column: 11,
endLine: 6,
endColumn: 30
column: 11
}
]
}
Expand Down

0 comments on commit 248c2ca

Please sign in to comment.