Skip to content

Commit

Permalink
chore: fix eslint error (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Mar 7, 2022
1 parent bcc97d6 commit 4f7447c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/address.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f7447c

Please sign in to comment.