aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorShinigami <[email protected]>2022-03-07 20:55:31 +0100
committerGitHub <[email protected]>2022-03-07 20:55:31 +0100
commit4f7447c3e38da71d261da254dd631b84fb4c22c4 (patch)
tree9c2df0d92989e6137c75209ff39ddd16e82490b7 /test
parentbcc97d69ba434b436d4b173dfba8122a417e8345 (diff)
downloadfaker-4f7447c3e38da71d261da254dd631b84fb4c22c4.tar.xz
faker-4f7447c3e38da71d261da254dd631b84fb4c22c4.zip
chore: fix eslint error (#597)
Diffstat (limited to 'test')
-rw-r--r--test/address.spec.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/address.spec.ts b/test/address.spec.ts
index 01d8a0b1..13213a60 100644
--- a/test/address.spec.ts
+++ b/test/address.spec.ts
@@ -622,8 +622,8 @@ describe('address', () => {
expect(coordinate[1]).toBeTypeOf('string');
const distanceToTarget =
- Math.pow(coordinate[0] - latitude, 2) +
- Math.pow(coordinate[1] - longitude, 2);
+ Math.pow(+coordinate[0] - latitude, 2) +
+ Math.pow(+coordinate[1] - longitude, 2);
expect(distanceToTarget).lessThanOrEqual(
100 * 0.002 // 100 km ~= 0.9 degrees, we take 2 degrees