Skip to content

Commit fe5692d

Browse files
authored
test(no-deprecated-props-default-this): make tests more strict (#2878)
1 parent d349881 commit fe5692d

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

tests/lib/rules/no-deprecated-props-default-this.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,22 @@ ruleTester.run('no-deprecated-props-default-this', rule, {
199199
</script>
200200
`,
201201
errors: [
202-
'Props default value factory functions no longer have access to `this`.',
203-
'Props default value factory functions no longer have access to `this`.'
202+
{
203+
message:
204+
'Props default value factory functions no longer have access to `this`.',
205+
line: 9,
206+
column: 24,
207+
endLine: 9,
208+
endColumn: 28
209+
},
210+
{
211+
message:
212+
'Props default value factory functions no longer have access to `this`.',
213+
line: 14,
214+
column: 24,
215+
endLine: 14,
216+
endColumn: 28
217+
}
204218
]
205219
}
206220
]

0 commit comments

Comments
 (0)