@@ -177,7 +177,7 @@ describe('address', () => {
177
177
expect (
178
178
latitude . toString ( ) . split ( '.' ) [ 1 ] . length ,
179
179
'The precision of latitude should be 4 digits'
180
- ) . toBe ( 4 ) ;
180
+ ) . lessThanOrEqual ( 4 ) ;
181
181
182
182
expect ( latitude ) . toBeGreaterThanOrEqual ( - 5 ) ;
183
183
expect ( latitude ) . toBeLessThanOrEqual ( 5 ) ;
@@ -189,7 +189,7 @@ describe('address', () => {
189
189
expect (
190
190
latitude . toString ( ) . split ( '.' ) [ 1 ] . length ,
191
191
'The precision of latitude should be 7 digits'
192
- ) . toBe ( 7 ) ;
192
+ ) . lessThanOrEqual ( 7 ) ;
193
193
194
194
expect ( latitude ) . toBeGreaterThanOrEqual ( - 180 ) ;
195
195
expect ( latitude ) . toBeLessThanOrEqual ( 180 ) ;
@@ -216,7 +216,7 @@ describe('address', () => {
216
216
expect (
217
217
longitude . toString ( ) . split ( '.' ) [ 1 ] . length ,
218
218
'The precision of longitude should be 4 digits'
219
- ) . toBe ( 4 ) ;
219
+ ) . lessThanOrEqual ( 4 ) ;
220
220
221
221
expect ( longitude ) . toBeGreaterThanOrEqual ( - 30 ) ;
222
222
expect ( longitude ) . toBeLessThanOrEqual ( 100 ) ;
@@ -228,7 +228,7 @@ describe('address', () => {
228
228
expect (
229
229
longitude . toString ( ) . split ( '.' ) [ 1 ] . length ,
230
230
'The precision of longitude should be 7 digits'
231
- ) . toBe ( 7 ) ;
231
+ ) . lessThanOrEqual ( 7 ) ;
232
232
233
233
expect ( longitude ) . toBeGreaterThanOrEqual ( - 180 ) ;
234
234
expect ( longitude ) . toBeLessThanOrEqual ( 180 ) ;
0 commit comments