Skip to content

Commit 5e17159

Browse files
Added missed position details for no-unsafe
1 parent 5b08a1e commit 5e17159

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/lib/rules/no-unsafe.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,18 @@ ruleTester.run('no-unsafe', rule, {
142142
endColumn: 10
143143
},
144144
{
145-
message: errorMessage('UNSAFE_componentWillReceiveProps')
145+
message: errorMessage('UNSAFE_componentWillReceiveProps'),
146+
line: 2,
147+
column: 38,
148+
endLine: 6,
149+
endColumn: 10
146150
},
147151
{
148-
message: errorMessage('UNSAFE_componentWillUpdate')
152+
message: errorMessage('UNSAFE_componentWillUpdate'),
153+
line: 2,
154+
column: 38,
155+
endLine: 6,
156+
endColumn: 10
149157
}
150158
]
151159
}

0 commit comments

Comments
 (0)