Skip to content

Commit 28e8b2f

Browse files
ST-DDTwaynzh
andauthored
test(dot-location): make tests more strict (#2824)
Co-authored-by: Wayne Zhang <[email protected]>
1 parent a2bfcb5 commit 28e8b2f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/lib/rules/dot-location.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ tester.run('dot-location', rule, {
4848
errors: [
4949
{
5050
message: 'Expected dot to be on same line as object.',
51-
line: 5
51+
line: 5,
52+
column: 13,
53+
endLine: 5,
54+
endColumn: 14
5255
}
5356
]
5457
},
@@ -71,7 +74,10 @@ tester.run('dot-location', rule, {
7174
errors: [
7275
{
7376
message: 'Expected dot to be on same line as property.',
74-
line: 4
77+
line: 4,
78+
column: 21,
79+
endLine: 4,
80+
endColumn: 22
7581
}
7682
]
7783
}

0 commit comments

Comments
 (0)