Skip to content

Commit 96258d1

Browse files
authored
test(no-loss-of-precision): make tests more strict (#2900)
1 parent bda2f32 commit 96258d1

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

tests/lib/rules/no-loss-of-precision.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,17 @@ tester.run('no-loss-of-precision', rule, {
5353
errors: [
5454
{
5555
message: 'This number literal will lose precision at runtime.',
56-
line: 3
56+
line: 3,
57+
column: 17,
58+
endLine: 3,
59+
endColumn: 37
5760
},
5861
{
5962
message: 'This number literal will lose precision at runtime.',
60-
line: 4
63+
line: 4,
64+
column: 17,
65+
endLine: 4,
66+
endColumn: 39
6167
}
6268
]
6369
},
@@ -71,7 +77,10 @@ tester.run('no-loss-of-precision', rule, {
7177
errors: [
7278
{
7379
message: 'This number literal will lose precision at runtime.',
74-
line: 3
80+
line: 3,
81+
column: 34,
82+
endLine: 3,
83+
endColumn: 54
7584
}
7685
]
7786
}

0 commit comments

Comments
 (0)